RSA

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	// 加密
	Encrypt(origData []byte) (encrypt []byte, err error)
	// 解密
	Decrypt(ciphertext []byte) (decrypt []byte, err error)
	// 加密文本
	EncryptStr(origData string) (encrypt string, err error)
	// 解密文本
	DecryptStr(ciphertext string) (decrypt string, err error)
}

func NewRsa

func NewRsa(public, private string) (srv Service, err error)

Jump to

Keyboard shortcuts

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