SecureStringExtensions.DecryptPassword Method
Decrypts DPAPI-protected string to an instance of
SecureString.
Namespace: ADCS.CertMod.Managed.ExtensionsAssembly: ADCS.CertMod.Managed (in ADCS.CertMod.Managed.dll) Version: 2.0.0.0 (2.0.0.0)
public static SecureString DecryptPassword(
this string encryptedPassword
)
<ExtensionAttribute>
Public Shared Function DecryptPassword (
encryptedPassword As String
) As SecureString
public:
[ExtensionAttribute]
static SecureString^ DecryptPassword(
String^ encryptedPassword
)
[<ExtensionAttribute>]
static member DecryptPassword :
encryptedPassword : string -> SecureString
- encryptedPassword String
- DPAPI-encrypted string.
SecureStringAn instance of
SecureString.In Visual Basic and C#, you can call this method as an instance method on any object of type
String. 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.