Documentation ¶
Index ¶
- func Md5File(fileWithPath string) (base64String string, err error)
- func Md5FileByBytes(fileWithPath string) (base64String string, err error)
- func Md5String(str string) (base64String string, err error)
- func Sha512File(fileWithPath string) (base64String string, err error)
- func Sha512FileByBytes(fileWithPath string) (base64String string, err error)
- func Sha512String(str string) (base64String string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sha512String ¶
简要说明:sha512: 不可逆的、防冲突,并具有良好的雪崩效应,比 MD5 安全; 比 MD5 慢
对字符串进行 基于安全散列算法 sha512
返回 base64 编码的字符串; 长度为 44 个字符
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.