-
Notifications
You must be signed in to change notification settings - Fork 113
Description
Good day,
first of all thank you for a great library, awesome job, much appreciated.
I am using your library in a project where cyber security is vital. In order to comply with some external requirements our software must ensure that the passwords are not stored in RAM longer than they need to. As we don't not have any control over when the GC collects the password string (and the string itself is immutable in memory) it would be a good idea to provide a mechanism to be able to overwrite the password in memory.
Do you think there is a chance for a feature which would include overloaded methods as below:
- HashPassword(byte[] text... and
- Verify(byte[] password...
Above changes would allow users to alter the contents of a password variable (because as you know we cannot do it with a string without using unsafe code) once a hash is generated or verified.
Should you be interested in including such a feature I have a sample code waiting and checked using WinDbg which would provide functionality described above.
Thank you for your time and an awesome piece of code which makes our lives easier.