BLOWFISH

External objects

Properties Methods 

Properties

$paddingA kBlowFishPadding... constant that indicates the type of padding to use when encrypting or expect when decrypting (default kBlowFishPaddingNone). A value other than kBlowFishPaddingNone is ignored if you specify a length header
kBlowFishPaddingNone kBlowFishPaddingPKCS5

Methods

$decrypt$decrypt(xData[,bHasLenHeader=kFalse]) Decrypts xData and returns the binary result; if bHasLenHeader is kTrue, the object strips the length header and uses it to set the length of the returned data
$decryptchar$decryptchar(xData[,bHasLenHeader=kFalse]) Decrypts xData and returns the character result; if bHasLenHeader is kTrue, the object strips the length header and uses it to set the length of the returned data
$encrypt$encrypt(xData[,bAddLenHeader=kFalse]) Optionally adds a length header if bAddLenHeader is kTrue,and then encrypts xData. Returns the binary encrypted data.The object can use the length header to restore the data length when decrypting
$encryptchar$encryptchar(cData[,bAddLenHeader=kFalse]) Optionally adds a length header if bAddLenHeader is kTrue,and then encrypts cData. Returns the binary encrypted data.The object can use the length header to restore the data length when decrypting
$initkey$initkey(xKey) Initializes the blowfish object to use the binary key xKey for encryption and decryption; you must initialize the object before calling its other methods