Documentation ¶
Index ¶
- func AesCFBDecrypt(base64str string, key []byte) ([]byte, error)
- func AesCFBEncrypt(msg, key []byte) (string, error)
- func ChaChaDecrypt(password, ciphertext []byte) ([]byte, error)
- func ChaChaEncrypt(password, plaintext []byte) ([]byte, error)
- func HMacMD5(s string, key []byte) string
- func MD5(s string) string
- func Md5Stream(reader io.Reader) (string, error)
- func Md5Sum(filename string) (string, error)
- func RandAuthToken() string
- func RandNumber(min, max int) int
- func RandString(length int64) string
- func SHA1(s string) string
- func SHA1Stream(reader io.Reader) (string, error)
- func SHA1StreamSum(filename string) (string, error)
- type Rsa
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesCFBDecrypt ¶
AesCFBDecrypt Aes解密
func ChaChaDecrypt ¶ added in v0.1.0
ChaChaDecrypt 解密
func ChaChaEncrypt ¶ added in v0.1.0
ChaChaEncrypt 加密
func RandAuthToken ¶
func RandAuthToken() string
func SHA1StreamSum ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.