Encrypt synchronous function
Synchronous decryption