Encryption and decryption for various ciphers and codes.