Is this only encoding without crypto to a file? If it is successful, it looks like changing the file attributes after that. File is created with clear text until it is changed. Is there any stream encryption to write to the file with encrypted streams?