Contact Info

Crumbtrail

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

ConvertFrom-SecureString - Powershell 3.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
ConvertFrom-SecureString [-SecureString] <SecureString> [[-SecureKey] <SecureString>] [<CommonParameters>]
ConvertFrom-SecureString [-SecureString] <SecureString> [-Key <Byte[]>] [<CommonParameters>]





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) encr
yption algorithm is used. The specified key must have a length of 128, 192, or 256 bits because those are the key lengt
hs supported by the AES encryption algorithm. If no key is specified, the Windows Data Protection API (DPAPI) is used t
o encrypt the standard string representation.