Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenEncryptedWithPass() cannot take ModeFlags.WriteRead #1

Closed
MrRobinOfficial opened this issue May 5, 2024 · 1 comment
Closed

Comments

@MrRobinOfficial
Copy link

MrRobinOfficial commented May 5, 2024

I found a bug, that revolves around encrypting a file and calling OpenEncryptedWithPass() function (SaveAccess.cs:90):

FileAccess.OpenEncryptedWithPass(filePath, FileAccess.ModeFlags.WriteRead, pass);

Changing from FileAccess.ModeFlags.WriteRead to FileAccess.ModeFlags.Write will allow the file to be written and saved correctly.

EDIT:

The same goes for OpenEncrypted() function.

@Ardot66
Copy link
Owner

Ardot66 commented May 11, 2024

Thanks for finding this! Turns out that WriteRead isn't supported by OpenEncrypedWithPass. I'll commit the fix and get the next version uploaded. Not completely sure why I was using WriteRead anyway, as I was only writing with it.

@Ardot66 Ardot66 closed this as completed May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants