Saturday, March 5, 2016

Powershell create secure string password

Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.

PS C:\Users\administrator> $SecureString = Read-Host -AsSecureString 'Enter password'
Enter password: **************

PS C:\Users\administrator> $SecureString
System.Security.SecureString

PS C:\Users\administrator> ConvertFrom-SecureString $SecureString

01000000d08c9ddf0115d1118c7a00c04fc297eb0100000099e2f79c9fed634eaf83589ff64d2480000000000200000000000366
000003b556d623f8680402e7ed65f46c7eb670000000004800000a0000000100000004f9320384e717f68e8bd5df2548d4519200


PS C:\Users\administrator> ConvertFrom-SecureString $SecureString >jockey.TXT
PS C:\Users\administrator> START jockey.TXT

No comments:

Post a Comment

Thanks for showing interest in tech-jockey.

Content of this blog has been moved to GITHUB

Looking at current trends and to make my content more reachable to people, I am moving all the content of my blog https://tech-jockey.blogsp...