Created
December 2, 2023 12:18
-
-
Save daniiiol/d8e22ca8f954bb41bb4fa7ce83fc50ec to your computer and use it in GitHub Desktop.
Create a SHA256 string of a string with Powershell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ClearString = "<yourString>" | |
$hasher = [System.Security.Cryptography.HashAlgorithm]::Create('sha256') | |
$hash = $hasher.ComputeHash([System.Text.Encoding]::UTF8.GetBytes($ClearString)) | |
$hashString = [System.BitConverter]::ToString($hash) | |
$hashString.Replace('-', '').ToLower() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment