Encrypt file when creating