ConvertFrom-SecureString - Powershell 2.0 CmdLet
ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »
ConvertFrom-SecureString
Short description
Converts a secure string into an encrypted standard string.
Syntax
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.
