Documentation
¶
Index ¶
- func IsHashString(str string) bool
- func RandBytes(size int) []byte
- func RandPass(length int, count ...int) string
- func SHA256Sum(str string) string
- type Crypto
- func (c *Crypto) AESKey(userPass, dbPass string) string
- func (c *Crypto) DecryptData(key, cipherData string) (string, error)
- func (c *Crypto) EncryptData(key, plainData string) (string, error)
- func (c *Crypto) EncryptUserPass(userID, userPass string) string
- func (c *Crypto) ValidateUserPass(userID, userPass, dbPass string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Crypto ¶
type Crypto struct {
// contains filtered or unexported fields
}
Crypto ...
func (*Crypto) DecryptData ¶
DecryptData ...
func (*Crypto) EncryptData ¶
EncryptData ...
func (*Crypto) EncryptUserPass ¶
EncryptUserPass ...
func (*Crypto) ValidateUserPass ¶
ValidateUserPass ...
Click to show internal directories.
Click to hide internal directories.