- Get it to compile again; lots changed since it was removed.
- Fix the package; lots changed since it was removed.
- Fix the Unix implementation to be usable; previous hacky attempts were made to provide deeper security but that significantly impacted usability... now it simply keeps the data in unmanaged memory and ensures it's zeroed out when disposed.
- Added missing methods to SecureStringMarshal
- Improved the tests
- General additional code cleanup
Commit migrated from https://github.com/dotnet/corefx/commit/d144478997b46afcf7a82e6860fce3c29d0dcf62
This commit provides a basic implementation of SecureString that will run on Unix and that will provide the expected inputs/outputs for consumers, but that doesn't do any encryption. If/when we figure out the right way to do that, we can add it later. For now, the implementation still stores the data in a native heap (so that the GC doesn't move it around leaving copies behind), zeroes out the data when done with it, uses mlock to attempt to keep the pages from getting swapped out, and uses mprotect to cause seg faults when attempting to access the data while at rest.
Commit migrated from https://github.com/dotnet/corefx/commit/2ba8de9b215b835463a8c402996e54044be6f650
Initial commit for System.Security.SecureString src and tests.
SecureString provides a mechanism to represent a text that should be kept confidential.
The text is encrypted for privacy when used, and is deleted from the computer memory
when no longer needed.
Commit migrated from https://github.com/dotnet/corefx/commit/aaaa4da5a51eaacdfd8897c490f3f843149010e5