Implementing loop to encrypt & decrypt.