I need to take the SHA512 of a file , convert to base 64 encoded string, and output to file.
PS > Get-FileHash <path to file> -Algorithm SHA512
I know this function is available [System.Convert]::ToBase64String
I need to take the SHA512 of a file , convert to base 64 encoded string, and output to file.
PS > Get-FileHash <path to file> -Algorithm SHA512
I know this function is available [System.Convert]::ToBase64String
Copyright © 2021 Jogjafile Inc.
You can do it like this:
Recover the hash again by doing this:
You can probably combine some of these steps, but this gives you a picture of the required steps