Extracted from Pike v7.4 release 117 at 2004-11-02.
pike.ida.liu.se
[Top]
predef::
Crypto
Crypto.cast

Method Crypto.cast()->crypt_block()


Method crypt_block

string crypt_block(string data)

Description

Encrypt/decrypt the string data with the current key.

If data is longer than the block size, additional blocks will be encrypted the same way as the first one (ie ECB-mode).

Note

Will throw errors if

sizeof(data )
is not a multiple of the block size.

See also

set_encrypt_key() , set_decrypt_key()