C# Class mRemoteNG.Security.SecureStringExtensions

Datei anzeigen Open project: mRemoteNG/mRemoteNG

Public Methods

Method Description
ConvertToSecureString ( this unsecuredPassword ) : SecureString
ConvertToUnsecureString ( this securePassword ) : string

Method to marshall a SecureString out of protected memory into a standard String object that is required by most other functions. Code initially taken from Fabio Pintos Source: https://blogs.msdn.microsoft.com/fpintos/2009/06/12/how-to-properly-convert-securestring-to-string/

IsBase64String ( this s ) : bool

Method Details

ConvertToSecureString() public static method

public static ConvertToSecureString ( this unsecuredPassword ) : SecureString
unsecuredPassword this
return System.Security.SecureString

ConvertToUnsecureString() public static method

Method to marshall a SecureString out of protected memory into a standard String object that is required by most other functions. Code initially taken from Fabio Pintos Source: https://blogs.msdn.microsoft.com/fpintos/2009/06/12/how-to-properly-convert-securestring-to-string/
public static ConvertToUnsecureString ( this securePassword ) : string
securePassword this
return string

IsBase64String() public static method

public static IsBase64String ( this s ) : bool
s this
return bool