gsha1

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package gsha1 provides useful API for SHA1 encryption/decryption algorithms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encrypt

func Encrypt(v interface{}) string

将任意类型的变量进行SHA摘要(注意map等非排序变量造成的不同结果) 内部使用了md5计算,因此效率会稍微差一些,更多情况请使用 EncodeString

func EncryptFile

func EncryptFile(path string) string

对文件内容进行SHA1摘要计算

func EncryptString

func EncryptString(s string) string

对字符串行SHA1摘要计算

Types

This section is empty.

Jump to

Keyboard shortcuts

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