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

Missing Feature: SaveStore to String #22

Open
dgauerke opened this issue Oct 21, 2024 · 2 comments
Open

Missing Feature: SaveStore to String #22

dgauerke opened this issue Oct 21, 2024 · 2 comments

Comments

@dgauerke
Copy link

There is currently a method to save the Vault to a file, but no way to get the string that will be written to allow alternate storage. It would be nice to have a method with the following signature

public string SaveStore() { }

You could just extract the beginning of the current method and call this one to write to the file. Then if we need to send it to some other storage (other than File), we could just get the encrypted string.

Thanks
David Gauerke

@dgauerke
Copy link
Author

I have created a work-around that saves the encrypted file to the Temp folder, then read the contents and delete the file. Not pretty, but will work for now.

@mqudsi
Copy link
Member

mqudsi commented Oct 23, 2024

I did not realize there was not a SaveStore(Stream stream) counterpart to the existing LoadStore(Stream stream) function.

Would you be interested in providing a PR for this behavior?

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