Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 4.0 » ConvertFrom-SecureString

ConvertFrom-SecureString - Powershell 4.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 standard 
string (System.String). Unlike a secure string, an encrypted standard string can be saved in a file for later use. The 
encrypted standard string can be converted back to its secure string format by using the ConvertTo-SecureString cmdlet.


If an encryption key is specified by using the Key or SecureKey parameters, the Advanced Encryption Standard (AES) 
encryption algorithm is used. The specified key must have a length of 128, 192, or 256 bits because those are the key 
lengths supported by the AES encryption algorithm. If no key is specified, the Windows Data Protection API (DPAPI) is 
used to encrypt the standard string representation.