There was an error while loading. Please reload this page.
1 parent 61fa55a commit 941eeccCopy full SHA for 941eecc
1 file changed
data/reusables/audit_log/generating-hash-for-a-token.md
@@ -14,6 +14,6 @@ Param (
14
$hasher = [System.Security.Cryptography.HashAlgorithm]::Create('sha256')
15
$hash = $hasher.ComputeHash([System.Text.Encoding]::UTF8.GetBytes($ClearString))
16
17
-$hashString = [System.BitConverter]::ToString($hash)
18
-$hashString.Replace('-', '')
+$hashString = [System.Convert]::ToBase64String($hash)
+$hashString
19
```
0 commit comments