File encryption and decryption implemented and tested