Encrypts and decrypts files