Documentation ¶
Index ¶
Constants ¶
View Source
const ( BCRYPT = "bcrypt" PBKDF2 = "pbkdf2" SCRYPT = "scrypt" ARGON2 = "argon2" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KDF ¶
type KDF interface { // DeriveKeyByPassword derive key by password DeriveKeyByPassword(password string) (deriveKey []byte, err error) // VerifyDeriveKeyStr verify deriveKeyStr VerifyDeriveKeyStr(kdfKeyStr string, password []byte) (isOk bool, err error) // GetDeriveKeyStr get deriveKeyStr GetDeriveKeyStr() string // KDFName get kdf name KDFName() string }
KDF interface
Click to show internal directories.
Click to hide internal directories.