crypto: Reimplement encrypt and decrypt.