ConvertTo-SecureString


Creates a securestring from a normal string created by export-securestring

Snap-In: Microsoft.PowerShell.Security

Syntax:

ConvertTo-SecureString

 [-String] <String> [ [-SecureKey] <SecureString>] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>] 

ConvertTo-SecureString

 [-String] <String> [-Key <Byte[]>] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>] 

Description:

ConvertTo-SecureString takes a normal string and converts it to a securestring using the DPAPIs. If a key is provided, the decryption will not use the DPAPI encryption, but another FIPS-140-compliant algorithm. The encryption key should be 16, 24, or 32 bytes long. The Rijndael algorithm used supports keys with lengths of 128, 192, and 256 bits.



Windows PowerShell. TFM
Internet Forensics
ISBN: 982131445
EAN: 2147483647
Year: 2004
Pages: 289

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net