Added cryptographic functions.