From f8c8bda142b8290deb74952f01b6ae7ac0003aab Mon Sep 17 00:00:00 2001 From: Ben Horton Date: Mon, 24 Nov 2025 14:42:40 -0800 Subject: [PATCH] Update generating-hash-for-a-token.md Fixed powershell block to base64 encode the output --- data/reusables/audit_log/generating-hash-for-a-token.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/reusables/audit_log/generating-hash-for-a-token.md b/data/reusables/audit_log/generating-hash-for-a-token.md index 97c9200fed74..e29164f3e7a7 100644 --- a/data/reusables/audit_log/generating-hash-for-a-token.md +++ b/data/reusables/audit_log/generating-hash-for-a-token.md @@ -14,6 +14,6 @@ Param ( $hasher = [System.Security.Cryptography.HashAlgorithm]::Create('sha256') $hash = $hasher.ComputeHash([System.Text.Encoding]::UTF8.GetBytes($ClearString)) -$hashString = [System.BitConverter]::ToString($hash) -$hashString.Replace('-', '') +$hashString = [System.Convert]::ToBase64String($hash) +$hashString ```