Closed ChrisJBurns closed 8 months ago
Now we can use it like this:
import "github.com/supercaracal/scram-sha-256/pkg/pgpasswd"
func foo(rawPassword []byte) error {
encrypted, err := pgpasswd.Encrypt(rawPassword)
if err != nil {
// ...
}
// ...
}
To be able to use this in Go programs, can you make this usable as a lib? Preferably just allowing the
encryptPassword
to be called providing a user passes in the password to hash?