PHP Class CryptDES, thinksns

可与java、c#的3DES(DESede)加密方式兼容
Mostra file Open project: medz/thinksns-4 Class Usage Examples

Public Properties

Property Type Description
$key

Public Methods

Method Description
CryptDES ( $key = '' )
decrypt ( $encrypted, $type = 'default' )
encrypt ( $input, $type = 'default' )
inputFilter ( $data, $type = 'base64_decode' )
outputFilter ( $data, $type = 'base64_encode' )
pkcs5_pad ( $text, $blocksize )
pkcs5_unpad ( $text )
setKey ( $key )

Method Details

CryptDES() public method

public CryptDES ( $key = '' )

decrypt() public method

public decrypt ( $encrypted, $type = 'default' )

encrypt() public method

public encrypt ( $input, $type = 'default' )

inputFilter() public method

public inputFilter ( $data, $type = 'base64_decode' )

outputFilter() public method

public outputFilter ( $data, $type = 'base64_encode' )

pkcs5_pad() public method

public pkcs5_pad ( $text, $blocksize )

pkcs5_unpad() public method

public pkcs5_unpad ( $text )

setKey() public method

public setKey ( $key )

Property Details

$key public_oe property

public $key