ecies

package
v2.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(cipherText []byte, privateKey [32]byte) ([]byte, error)

Decrypt 解密

func Encrypt

func Encrypt(plainText []byte, publicKey [32]byte) ([]byte, error)

Encrypt 加密

func GenerateKey

func GenerateKey() (priv, pub [32]byte, err error)

GenerateKey 基于curve25519椭圆曲线算法生成秘钥对(32位)

Types

This section is empty.

Jump to

Keyboard shortcuts

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