after you have encrypted, i don't see the code to write the encrypted data into the file..