//
pkg.gl
Category
github.com/opsdata/common-base
pkg
auth
package
0.0.0-20220608003731-3bf80463e334
Repository:
https://github.com/opsdata/common-base.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
3
Dependents
2
Files
31 SLOC
#
Functions
Compare
Compare compares the encrypted text with the plain text if it is the same.
Encrypt
Encrypt encrypts the plain text with bcrypt.
Sign
Sign issues a jwt token based on secretID, secretKey, iss and aud.