Encryption and decryption of integers