common_crypto

package
v0.4.61 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecryptECB

func AesDecryptECB(encryptedStr, keyStr string) string

AesDecryptECB Aes解密

func AesEncryptECB

func AesEncryptECB(origDataStr, keyStr string) string

AesEncryptECB Aes加密

func DecodeFromBase62 added in v0.4.54

func DecodeFromBase62(encoded string) string

DecodeFromBase62 将 Base62 字符串解码为原始字符串

func EncodeToBase62 added in v0.4.54

func EncodeToBase62(str string) string

EncodeToBase62 将字符串编码为 Base62 字符串

func Md5

func Md5(str string) string

Md5 md5加密

func PasswordHash

func PasswordHash(pwd string) string

PasswordHash 生成密码hash

func PasswordVerify

func PasswordVerify(pwd, hash string) bool

PasswordVerify 验证密码

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL