using shift method in encryption/decryption