crypt

package
v0.0.0-...-89bd553 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PriPemBegin = "-----BEGIN RSA PRIVATE KEY-----\n"
	PriPemEnd   = "\n-----END RSA PRIVATE KEY-----"
	PubPemBegin = "-----BEGIN PUBLIC KEY-----\n"
	PubPemEnd   = "\n-----END PUBLIC KEY-----"
)

Variables

This section is empty.

Functions

func HmacSha1

func HmacSha1(text string, key string) string

func InitPrivateKey

func InitPrivateKey(key string, isPath bool) (priKey *rsa.PrivateKey, err error)

func InitPublicKey

func InitPublicKey(key string, isPath bool) (pubKey *rsa.PublicKey, err error)

func MD5

func MD5(text string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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