Documentation ¶
Index ¶
- Constants
- func Sign(publicKeyText string, pwd string, salt string, signedTime int64) (string, error)
- func SignNow(publicKeyText string, password string, salt string) (string, error)
- func Verify(token string, privateKeyText string, pwd string, salt string, expired int64) error
- func VerifyNow(token string, privateKeyText string, password string, salt string) error
- type TokenStruct
Constants ¶
View Source
const DEFAULT_EXPIRED time.Duration = 60 * time.Minute
const INTERVAL string = "|||"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TokenStruct ¶
Click to show internal directories.
Click to hide internal directories.