changed encryptedBytes to encryptedString