gsha1

package
v0.0.0-...-c9a36a8 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

SHA1

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(v interface{}) string

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

func EncodeFile

func EncodeFile(path string) string

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

func EncodeString

func EncodeString(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