ConvertFrom-SecureString - Powershell 2.0 CmdLet
Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.
More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.
Short description Converts a secure string into an encrypted standard string. Syntax ConvertFrom-SecureString [-Key <Byte>] [-SecureString] <SecureString> [<CommonParameters>] ConvertFrom-SecureString [[-SecureKey] <SecureString>] [-SecureString] <SecureString> [<CommonParameters>] Description The ConvertFrom-SecureString cmdlet converts a secure string (System.Security.SecureString) into an encrypted stand ard string (System.String). Unlike a secure string, an encrypted standard string can be saved in a file for later u se. The encrypted standard string can be converted back to its secure string format by using the ConvertTo-SecureSt ring cmdlet. If an encryption key is specified by using the Key or SecureKey parameters, the Rijndael encryption al gorithm is used. The specified key must have a length of 128, 192, or 256 bits because those are the key lengths su pported by the Rijndael encryption algorithm. If no key is specified, the Windows Data Protection API (DPAPI) is us ed to encrypt the standard string representation.