package
Version:
v0.0.0-...-2910145
Opens a new window with list of versions in this module.
Published: Feb 14, 2024
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package gsha1 提供了用于SHA1加密算法的有用API。
func X加密(值 interface{}) string
Encrypt 使用SHA1算法对任意类型的变量进行加密。
它使用gconv包将`v`转换为字节类型。
EncryptFile 使用SHA1算法加密`path`指定文件的内容。
MustEncryptFile 使用SHA1算法加密`path`指定文件的内容。
如果出现任何错误,将会触发panic。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.