Skip to content

Commit f8c8bda

Browse files
authored
Update generating-hash-for-a-token.md
Fixed powershell block to base64 encode the output
1 parent 83fd9a4 commit f8c8bda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

data/reusables/audit_log/generating-hash-for-a-token.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ Param (
1414
$hasher = [System.Security.Cryptography.HashAlgorithm]::Create('sha256')
1515
$hash = $hasher.ComputeHash([System.Text.Encoding]::UTF8.GetBytes($ClearString))
1616

17-
$hashString = [System.BitConverter]::ToString($hash)
18-
$hashString.Replace('-', '')
17+
$hashString = [System.Convert]::ToBase64String($hash)
18+
$hashString
1919
```

0 commit comments

Comments
 (0)