diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2025-10-28 20:55:36 -0700 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2025-10-28 20:55:36 -0700 |
| commit | 25d822ed2251a8dfec8bf5934a067f38d22fae95 (patch) | |
| tree | 448c41de0dccf5143d0db409a26f50cf74ed0105 /tools/hashpw/hashpw.go | |
| parent | cbd368cd7549c544bcf64281f6b4126299665639 (diff) | |
| download | roseh.moe-25d822ed2251a8dfec8bf5934a067f38d22fae95.tar.zst | |
Switch to ccl
Diffstat (limited to 'tools/hashpw/hashpw.go')
| -rw-r--r-- | tools/hashpw/hashpw.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/hashpw/hashpw.go b/tools/hashpw/hashpw.go index ac9745d..526ad15 100644 --- a/tools/hashpw/hashpw.go +++ b/tools/hashpw/hashpw.go @@ -2,8 +2,10 @@ package main import ( "crypto/rand" + "encoding/base64" "fmt" "os" + "slices" "golang.org/x/term" "roseh.moe/pkg/roseh.moe/internal/pwhash" @@ -22,7 +24,7 @@ func hashpw() error { if err != nil { return err } - fmt.Printf("notepad-password=%x%x\n", hash, salt) + fmt.Printf("NotepadPassword:%q\n", base64.StdEncoding.EncodeToString(slices.Concat(hash, salt))) return nil } |
