I am trying to get the key this key for an assignment I was provided with the key and hash. In PowerShell how do I convert this to plain text. Any guidance is appreciated.
I have tried these
PS C:\test> $PlainPassword = Get-Content C:\test\secure-hash.txt
PS C:\test> $SecurePassword = ConvertTo-SecureString $PlainPassword -AsPlainText -Force
PS C:\test>
I've tried ConvertFrom-SecureString input hash with no success
The process of exporting and importing a Password using the
-Keyparameter goes like this:RandomNumberGeneratorClass. Note: Valid key lengths are 16, 24 and 32 bytes.If you're using PowerShell Core:
If you're using Windows PowerShell: