package
1.0.0
Repository: https://github.com/fzf-labs/futil.git
Documentation: pkg.go.dev

# README

常用加密解密

aes MD5 rsa sha1

# Functions

AesDecrypt 使用 AES 加密算法解密数据。.
AesEncrypt 使用 AES 加密算法加密数据。.
Base64Decode 解码 base64 编码的字符串.
Base64Encode 使用 base64 编码对字符串进行编码.
No description provided by the author
No description provided by the author
Compare compares the encrypted text with the plain text if it's the same.
DesDecrypt 使用 Des 加密算法解密数据。.
DesEncrypt 使用 Des 加密算法加密数据。.
Encrypt encrypts the plain text with bcrypt.
FormatPrivateKey 格式化 普通应用秘钥.
FormatPublicKey 格式化 普通应用公钥.
No description provided by the author
HmacSha1 return the hmac hash of string use sha1.
HmacSha256 return the hmac hash of string use sha256.
HmacSha512 return the hmac hash of string use sha512.
Md5File 返回文件的 md5 值.
Md5ToBase64 返回字符串的 md5 值,并转换为 base64 字符串.
Md5ToHex 返回字符串的 md5 值,并转换为十六进制字符串.
NewAesCipher 返回一个新的AES密码实例。.
NewDesCipher 返回一个新的DES密码实例。.
No description provided by the author
No description provided by the author
No description provided by the author
Sha1 return the sha1 value (SHA-1 hash algorithm) of string.
Sha256 return the sha256 value (SHA256 hash algorithm) of string.
Sha512 return the sha512 value (SHA512 hash algorithm) of string.

# Constants

key format constants.
key format constants.

# Structs

No description provided by the author