Changed encryption algorithm arguments

Encryption algorithm arguments changed to accept byte arrays. A new
function added to FileReader to create a new file from the given byte
array.