Basic
Install in the application
go get github.com/weplanx/goPassport
// Create passport
x1 = passport.New(
passport.SetIssuer("dev"),
passport.SetKey(key1),
)
// Create token
token, err = x1.Create(userId1, jti1, time.Hour*2)
// Verify token
clamis1, err = x1.Verify(token)Argon2id
// Generate hash value
hash, err := passlib.Hash("pass@VAN1234")
// Verify password
err = passlib.Verify("pass@VAN1234", hash)Totp
Data Cipher
Captcha
Verify Locker
Last updated
Was this helpful?