added padding for password
addded base64 encoding to be sure to be able to read the data from the file
addded function to decrypt the data read from the file