We are going to take a breaking change and remove the functionality of the SecureStringTo* methods which should now be implemented directly on Marshal.
Once they are avaialable on the Marshal class we can expose them as direct calls from this library.
Commit migrated from https://github.com/dotnet/corefx/commit/edac8aa25cf1bf79f61bcac87b45f06d3b74c456
- 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