supported() supported() : boolean Is this driver supported on this system? Returns boolean — True if supported.
__construct() __construct(string $cipher) Constructor. Parameters string $cipher Either 'ecb' or 'cbc'.
encrypt() encrypt(string $text) : string Encrypts a string. Parameters string $text The string to encrypt. Throws \Horde_Crypt_Blowfish_Exception Returns string — The ciphertext.
decrypt() decrypt(string $text) : string Decrypts a string. Parameters string $text The string to encrypt. Throws \Horde_Crypt_Blowfish_Exception Returns string — The ciphertext.
setIv() setIv(string $iv = null) Sets the initialization vector (required for CBC mode). Parameters string $iv Initialization vector.
_pad() _pad(string $text, boolean $ignore = false) : string Pad text to match blocksize length. Parameters string $text Unpadded text. boolean $ignore Don't pad if already at blocksize length. Returns string — Padded text.
_unpad() _unpad(string $text) : string Unpad text from blocksize boundary. Parameters string $text Padded text. Returns string — Unpadded text.