Versions in this module Expand all Collapse all v1 v1.1.34 Apr 10, 2026 v1.0.0 Apr 10, 2026 Changes in this version + var DefaultAESKey = []byte("f51d66a73d8a0927") + var DefaultCost = 10 + func AesDecrypt(cryptedText, key, iv []byte) ([]byte, error) + func AesEncrypt(plainText, key, iv []byte) ([]byte, error) + func GenerateAESKey(length int) ([]byte, error) + func GenerateSalt(length int) (string, error) + func HashPassword(password string) (string, error) + func HashPasswordWithSalt(password, salt string) (string, error) + func PKCS5Padding(plaintext []byte, blockSize int) []byte + func PKCS5UnPadding(origData []byte) []byte + func VerifyPassword(password, hash string) bool + func VerifyPasswordWithSalt(password, salt, hashedPassword string) bool