rsa

package
v0.0.0-...-28c4e55 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(privateKey string, ciphertext []byte) ([]byte, error)

Decrypt 解密

func Encrypt

func Encrypt(publicKey string, origData []byte) ([]byte, error)

Encrypt 加密

func GenRsaKey

func GenRsaKey(bits int) (string, string, error)

GenRsaKey 生成公钥私钥

Types

This section is empty.

Jump to

Keyboard shortcuts

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