SecureStringExtensionsEncryptPassword Method
Encrypts an instance of
SecureString to a DPAPI-protected string.
Namespace: ADCS.CertMod.Managed.ExtensionsAssembly: ADCS.CertMod.Managed (in ADCS.CertMod.Managed.dll) Version: 2.0.0.0 (2.0.0.0)
public static string EncryptPassword(
this SecureString password
)
<ExtensionAttribute>
Public Shared Function EncryptPassword (
password As SecureString
) As String
public:
[ExtensionAttribute]
static String^ EncryptPassword(
SecureString^ password
)
[<ExtensionAttribute>]
static member EncryptPassword :
password : SecureString -> string
- password SecureString
- An instance of SecureString.
StringDPAPI-protected string.In Visual Basic and C#, you can call this method as an instance method on any object of type
SecureString. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
This method uses current user context for DPAPI.