got the encryption and decryption of files working correctly.