In a not directly visible from the outside storage area secure strings are stored. Make them available aside to represent in a script, you will be encrypted. The encryption is tied to the machine be created.
# $ secure string = read-host-assecurestring | Secure entering the secure strings to the console |
$ Encrypted = ConvertFrom SecureString -secure string $ SecureString | Encrypted (suitable for scripting) |
0th .6 * 44), 44)} | $ A array of 7 parts, for clarity encrypted.length $ / 7 = 44 |
# "` $ E = ` "; create $ A | $ E + = "1000000065th .. 34e88821400" $ E + = "00003d43c0 ... 5f56b26949c5" |
SecureString from Encrypted String | System.Runtime.InteropServices Marshal.]:: SecureStringToBSTR ($ secure string) |
| $ Decoded = [ System.Runtime.InteropServices Marshal.]:: PtrToStringAuto ($ ptr) |
| |
0 comments:
Post a Comment