ecc

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ecc

type Ecc struct {
	PrivateKey *eciesgo.PrivateKey
	PublicKey  *eciesgo.PublicKey
}

Ecc ECC加密核心对象

func NewEcc

func NewEcc() *Ecc

NewEcc 创建ECC加密对象的实例

func (*Ecc) Decrypt

func (e *Ecc) Decrypt(data []byte) ([]byte, error)

Decrypt ECC解密数据

func (*Ecc) DecryptString

func (e *Ecc) DecryptString(data string) (string, error)

DecryptString ECC解密字符串

func (*Ecc) Encrypt

func (e *Ecc) Encrypt(data []byte) ([]byte, error)

Encrypt ECC加密数据

func (*Ecc) EncryptString

func (e *Ecc) EncryptString(data string) (string, error)

EncryptString ECC加密字符串

Jump to

Keyboard shortcuts

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