encrypt

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(key []byte) uint64

Types

type Encrypt

type Encrypt struct {
	PrivateKey *rsa.PrivateKey
}

func LoadKey

func LoadKey(path string, keygen bool) (encrypt *Encrypt, err error)

func (*Encrypt) Decrypt

func (enc *Encrypt) Decrypt(cipherText string) (string, error)

func (*Encrypt) Encrypt

func (enc *Encrypt) Encrypt(secretMessage string) (string, error)

Jump to

Keyboard shortcuts

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