Logo Search packages:      
Sourcecode: ldap-account-manager version File versions

Cipher_blowfish::encryptBlock ( block,
key = null 

Encrypt a block on data.

String $block The data to encrypt
optional String $key The key to use
String the encrypted output

Definition at line 389 of file blowfish.inc.

References _encryptBlock(), and setKey().

Referenced by encrypt().

        if (!is_null($key)) {

        list($L, $R) = array_values(unpack('N*', $block));
        $parts = $this->_encryptBlock($L, $R);
        return pack("NN", $parts['L'], $parts['R']);

Generated by  Doxygen 1.6.0   Back to index