crypto

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKeypair added in v0.0.4

func GenerateKeypair() (string, string, error)

Types

type Decrypter

type Decrypter struct {
	// contains filtered or unexported fields
}

func PrepareDecrypter

func PrepareDecrypter(pubKey string, privKey string) (Decrypter, error)

func (Decrypter) Decrypt added in v0.0.7

func (decrypter Decrypter) Decrypt(s string) (string, error)

type Encrypter

type Encrypter struct {
	// contains filtered or unexported fields
}

func PrepareEncrypter

func PrepareEncrypter(pubKey string) (Encrypter, error)

func (Encrypter) Encrypt added in v0.0.7

func (encrypter Encrypter) Encrypt(s string) (string, error)

Jump to

Keyboard shortcuts

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