auth

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHMACSHA1

func CheckHMACSHA1(message, messageMAC, key []byte) bool

func HMACSHA1

func HMACSHA1(message, key []byte) string

func MD5

func MD5(b []byte) string

func RsaDecryptByPri

func RsaDecryptByPri(pri_key_file string, ciphertext []byte) ([]byte, error)

私钥解密

func RsaEncryptByPub

func RsaEncryptByPub(pub_key_file string, origData []byte) ([]byte, error)

公钥加密

func SHA1

func SHA1(b []byte) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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