apidoc
[ class tree: apidoc ] [ index: apidoc ] [ all elements ]

Class: Crypt_CBC

Source Location: /Crypt_CBC-1.0.1/Crypt/CBC.php

Class Overview

PEAR
   |
   --Crypt_CBC



Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 32]


[ Top ]


Class Variables

$blocksize =

[line 66]

blocksize of cipher

Type:   string


[ Top ]

$cipher =

[line 48]

used cipher

Type:   string


[ Top ]

$deinit_function =

[line 60]

crypt deinit function, for backwards compatability

Type:   string


[ Top ]

$header_spec =  'RandomIV'

[line 91]

header

Type:   string


[ Top ]

$keyhash =

[line 78]

mangled key

Type:   string


[ Top ]

$keysize =

[line 72]

keysize of cipher

Type:   int


[ Top ]

$known_ciphers = array (
        'DES'               => MCRYPT_DES,
        'BLOWFISH'          => MCRYPT_BLOWFISH,
        'BLOWFISH-COMPAT'   => MCRYPT_BLOWFISH_COMPAT,
    )

[line 38]

supported procedures

Type:   array


[ Top ]

$rand_source =  MCRYPT_RAND

[line 85]

source type of the initialization vector for creation

possible types are MCRYPT_RAND or MCRYPT_DEV_URANDOM or MCRYPT_DEV_RANDOM


Type:   int


[ Top ]

$TD =

[line 54]

crypt resource, for 2.4.x

Type:   string


[ Top ]



Method Detail

Crypt_CBC (Constructor)   [line 119]

$return Crypt_CBC( $key $key, [$cipher $cipher = 'DES'])

Constructor $key is the key to use for encryption. $cipher can be DES, BLOWFISH or BLOWFISH-COMPAT
  • Return: either a PEAR error or true
  • Access: public

Parameters:

$key   $key   —  encryption key
$cipher   $cipher   —  which algorithm to use, defaults to DES

[ Top ]

_Crypt_CBC (Destructor)   [line 184]

void _Crypt_CBC( )

Destructor

[ Top ]

decrypt   [line 252]

$clear decrypt( $crypt $crypt)

Decryption method
  • Return: plaintext, or PEAR error
  • Access: public

Parameters:

$crypt   $crypt   —  encrypted text

[ Top ]

encrypt   [line 201]

$crypt encrypt( $clear $clear)

Encryption method
  • Return: encrypted text, or PEAR error
  • Access: public

Parameters:

$clear   $clear   —  plaintext

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:47:23 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.