-x, -f, env vars, prepping for hashing

This commit is contained in:
2022-05-22 04:43:12 -04:00
parent f76edd3022
commit 1d4d7c5538
15 changed files with 262 additions and 38 deletions

1
pwhash/funcs.go Normal file
View File

@@ -0,0 +1 @@
package pwhash

16
pwhash/init.go Normal file
View File

@@ -0,0 +1,16 @@
package pwhash
import (
"github.com/hlandau/passlib"
)
// init initializes the hashing libraries where necessary.
func init() {
var err error
if err = passlib.UseDefaults("latest"); err != nil {
panic(err)
}
}