Implementation of some basic algorithms relevant for cryptography.