util: password: Add a helper to generate salted, hashed passwords

I have no idea if I'm doing this correctly, and I have no idea if the
library I am using is doing this correctly. Please check!
This commit is contained in:
James Shubin
2024-03-07 17:33:00 -05:00
parent 9351eee3f1
commit b496f8d70a
3 changed files with 33 additions and 0 deletions

1
go.mod
View File

@@ -118,6 +118,7 @@ require (
github.com/spf13/pflag v1.0.6-0.20210604193023-d5e0c0615ace // indirect
github.com/src-d/gcfg v1.4.0 // indirect
github.com/tmc/grpc-websocket-proxy v0.0.0-20220101234140-673ab2c3ae75 // indirect
github.com/tredoe/osutil/v2 v2.0.0-rc.16 // indirect
github.com/u-root/uio v0.0.0-20230305220412-3e8cd9d6bf63 // indirect
github.com/vishvananda/netns v0.0.0-20220913150850-18c4f4234207 // indirect
github.com/xanzy/ssh-agent v0.3.2 // indirect