Added vendor/ dir to remove dependencies on gopkg.in (down Aug 12 2022)

This commit is contained in:
Russ Magee 2022-08-12 21:30:05 -07:00
parent f24d4d8fdb
commit 7a4560762d
913 changed files with 317350 additions and 0 deletions

11
vendor/gopkg.in/hlandau/passlib.v1/abstract/compare.go generated vendored Normal file
View file

@ -0,0 +1,11 @@
package abstract
import "crypto/subtle"
// Compares two strings (typicaly password hashes) in a secure, constant-time
// fashion. Returns true iff they are equal.
func SecureCompare(a, b string) bool {
ab := []byte(a)
bb := []byte(b)
return subtle.ConstantTimeCompare(ab, bb) == 1
}