Add encrypt and decrypt method to crypto_engine