Crypto library prototype