diff --git a/docs/Tutorials/Authentication/Inbuilt/UserFile.md b/docs/Tutorials/Authentication/Inbuilt/UserFile.md index 2a28456b7..564c54dbc 100644 --- a/docs/Tutorials/Authentication/Inbuilt/UserFile.md +++ b/docs/Tutorials/Authentication/Inbuilt/UserFile.md @@ -62,6 +62,7 @@ Start-PodeServer { Regardless of whether the password is a standard SHA256 hash or HMAC hash, the hashed output should be a base64 string. The following functions will return the hashed value in the expected format: **SHA256 HASH**: + ```powershell function ConvertTo-SHA256([string]$String) { @@ -73,6 +74,7 @@ function ConvertTo-SHA256([string]$String) ``` **HMAC HASH:** + ```powershell function ConvertTo-HMACSHA256([string]$String, [string]$Secret) { $HMACSHA256 = New-Object System.Security.Cryptography.HMACSHA256