rotation-based encryption/decryption program