parent
30c963a5f0
commit
61a1c93f0f
89 changed files with 15859 additions and 2 deletions
11
server/libs/encrypt/token_encrypter.go
Normal file
11
server/libs/encrypt/token_encrypter.go
Normal file
|
@ -0,0 +1,11 @@
|
|||
package encrypt
|
||||
|
||||
type EncrypterMaker func(string) TokenEncrypter
|
||||
|
||||
// TODO: name should be Encrypter?
|
||||
type TokenEncrypter interface {
|
||||
Add(string, string) bool
|
||||
FromStr(string) bool
|
||||
Get(string) (string, bool)
|
||||
ToStr() (string, bool)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue