Skip to content

Instantly share code, notes, and snippets.

@matthewbelisle-wf
Last active September 28, 2018 04:43
Show Gist options
  • Save matthewbelisle-wf/9f5acebcb3e9935a8850b9737fa870ae to your computer and use it in GitHub Desktop.
Save matthewbelisle-wf/9f5acebcb3e9935a8850b9737fa870ae to your computer and use it in GitHub Desktop.
NetWars
$File = "securestring.txt"; $Key = [byte]1..16; $Password = Get-Content $File | ConvertTo-SecureString -Key $Key
$BSTR = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($Password); $UnsecurePassword = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR); Write-Host $UnsecurePassword
76492d1116743f0423413b16050a5345MgB8AE0ATABhAEEAOQB6AHIAMQByAHUAWgBiAGoASQA2AEkAdgBqADgAbQBBAHcAPQA9AHwAMgAzADkANAA5ADYAYQAzADAAMgBhAGQAYgBkADgAYgBkAGIAZgA5AGEAMgBhADAAMABjADYAMQBjADEAOABmAGYAYwAxADUAYwA4AGQAMQBmAGUAMAA2ADYAMQAyAGYAMQAyAGEANgBmADAAZABiAGIAMQA1ADcANQAzADUAZgA=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment