Documentation ¶
Index ¶
- Variables
- func DecryptAES(key string, data string) string
- func DecryptRSA(cipherText []byte, buf []byte) string
- func EncryptAES(key string, data string) string
- func EncryptRSA(plainText string, buf []byte) []byte
- func GenerateMd5(psd string) (encodedPsd, salt string)
- func GenerateRSAKey(bits int) ([]byte, []byte)
- func HashSha1(data string) string
- func HashSha256(data string) string
- func HashSha512(data string) string
- func VerifyMd5(encodePsd, psd, salt string) bool
- type Md5Config
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultMd5Config = Md5Config{SaltLen: 10, Iterations: 10, KeyLen: 30}
Functions ¶
func DecryptAES ¶
func DecryptRSA ¶
func EncryptAES ¶
func EncryptRSA ¶
func HashSha256 ¶
func HashSha512 ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.