Decryption writing to file with char arrays.