Module Crypto


Various cryptographic classes and functions.

Hash functions These are based on the Hash API; MD2, MD4, MD5, SHA1, SHA256.

Stream cipher functions These are based on the Cipher API; AES, Arcfour, Blowfish, CAST, DES, DES3, IDEA, Serpent, Twofish. The Substitution program is compatible with the CipherState. Also conforming to the API are the helper modules Buffer, CBC, GCM and Pipe.

As the cryptographic services offered from this module isn't necessarily used for security applications, none of the strings input or output are marked as secure. This is up to the caller.


This module is only available if Pike has been compiled with Nettle enabled (this is the default).

Variable Buffer

__deprecated__ program Crypto.Buffer


This class has moved to submodules of the respective ciphers.