Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenRandomPassword ¶
gen random base64 encoded password
Types ¶
type KeyGenerator ¶
type KeyGenerator struct {
AESKey string
}
func NewKeyGenerator ¶
func NewKeyGenerator(key string) (*KeyGenerator, error)
func (*KeyGenerator) DecodeIdFromRandomKey ¶
func (g *KeyGenerator) DecodeIdFromRandomKey(encrypted string) (int64, error)
get id from encrypt strings
func (*KeyGenerator) GenRandomKey ¶
func (g *KeyGenerator) GenRandomKey(id int64) (string, error)
Click to show internal directories.
Click to hide internal directories.