Encryption / decryption code added to crypto service