class_crypto for encryption/decryption