Versions in this module Expand all Collapse all v1 v1.0.0 Apr 12, 2023 Changes in this version + func AesDecryptECB(ciphertext []byte, key []byte) ([]byte, error) + func AesEncryptECB(plaintext []byte, key []byte) ([]byte, error) + func CheckPasswordHash(password, hash string) bool + func DecryptAESCFB(key []byte, ciphertext string) ([]byte, error) + func EncryptAESCFB(key []byte, plaintext []byte) (string, error) + func GenToken(secret string, duration time.Duration, claims jwt.MapClaims) (string, error) + func GenerateAESCFBKey(size int) ([]byte, error) + func GenerateAESECBKey(length int) ([]byte, error) + func HashPassword(password string) (string, error) + func MD5(str []byte, b ...byte) string + func MD5Salt(password, salt string) string + func ParseToken(tokenString string, secret string) (jwt.MapClaims, error) + func Pkcs7Padding(data []byte, blockSize int) []byte