Documentation ¶
Index ¶
- Variables
- func MustParseBcrypt(passwd string) string
- func MustParseHmac(key, id string, timestamp time.Time, nonce int64) string
- func MustParsePassword(x string) string
- func MustParsePbkdf2(passwd string) string
- func ValidateHmac(hash, key, id string, timestamp time.Time, nonce int64) bool
- func ValidatePassword(hash, passwd string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DEFAULT_HMAC_TIMESTAMP, _ = time.Parse(time.RFC3339, "2019-01-01T00:00:00Z")
DEFAULT_HMAC_TIMESTAMP_INT64 = int64(1546300800000000000) // WEBHOOK_HMAC_TIMESTAMP.UnixNano()
DEFAULT_HMAC_NONCE = int64(1024)
)
View Source
var ( PBKDF2_RAND_LETTERS []byte PBKDF2_SEPARATOR = "$" PBKDF2_TAG = "PBKDF2" PBKDF2_ALGORITHM = "sha256" PBKDF2_ITERATIONS = 901 PBKDF2_KEY_LENGTH = 48 PBKDF2_SALT_LENGTH = 12 )
Functions ¶
func MustParseBcrypt ¶
func MustParsePassword ¶
func MustParsePbkdf2 ¶ added in v1.0.0
func ValidatePassword ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.