Skip to content

Commit

Permalink
Merge pull request #1117 from ArieHein/patch-3
Browse files Browse the repository at this point in the history
Mardown style changes
  • Loading branch information
Badgerati authored Jul 16, 2023
2 parents 22405b0 + e975841 commit 4912ec6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/Tutorials/Authentication/Inbuilt/UserFile.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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
Expand Down

0 comments on commit 4912ec6

Please sign in to comment.