utils

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptText added in v1.3.0

func DecryptText(secret string, ctStr string) (string, error)

func DecryptTextWithSecretKey

func DecryptTextWithSecretKey(secretKey *xipher.PrivateKey, ctStr string) (string, error)

func EncryptDataWithPubKey

func EncryptDataWithPubKey(pubKey *xipher.PublicKey, data []byte) (string, error)

func EncryptDataWithPubKeyStr

func EncryptDataWithPubKeyStr(pubKeyStr string, data []byte) (string, error)

func GetPublicKey added in v1.3.0

func GetPublicKey(secret string, quantumSafe bool) (string, error)

func NewSecretKey added in v1.3.0

func NewSecretKey() (sk string, err error)

func PubKeyFromStr

func PubKeyFromStr(pubKeyStr string) (*xipher.PublicKey, error)

func SecretKeyFromSecret added in v1.3.0

func SecretKeyFromSecret(secret string) (*xipher.PrivateKey, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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