crypto

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MD5 = md5Namespace{}

MD5 md5Namespace 的实例

Functions

func Base64

func Base64(str string) string

Base64 编码

func HMACSHA1

func HMACSHA1(str, key string) (string, string, string)

HMACSHA1 签名

func SHA1

func SHA1(str string) string

SHA1 sha1 签名

func URLEncode

func URLEncode(str string, p bool) string

URLEncode 编码 true: 空格编码为%20,false: 空格编码为+

Types

This section is empty.

Jump to

Keyboard shortcuts

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