The highest tagged major version is
v2.
package
Version:
v1.5.17
Opens a new window with list of versions in this module.
Published: Mar 19, 2019
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package gsha1 provides useful API for SHA1 encryption/decryption algorithms.
func Encrypt(v interface{}) string
将任意类型的变量进行SHA摘要(注意map等非排序变量造成的不同结果)
内部使用了md5计算,因此效率会稍微差一些,更多情况请使用 EncodeString
Source Files
¶
Click to show internal directories.
Click to hide internal directories.