SecureStringUtils class

Provides utility methods for working with SecureString and ReadOnlySpan<char>.

public static class SecureStringUtils

Public Members

name description
static ToSecureSpan(…) Converts a SecureString to a ReadOnlySpan<char> and passes it to the specified handler. The unmanaged memory is zeroed and freed after the handler executes.
static ToSecureString(…) Converts a ReadOnlySpan to a SecureString.
delegate SpanHandler Represents a delegate that handles a ReadOnlySpan<char>.

See Also