utils

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptData

func DecryptData(secretKeyOrPwd string, ctStr string) ([]byte, error)

func DecryptStream added in v1.6.0

func DecryptStream(secretKeyOrPwd string, dst io.Writer, src io.Reader) (err error)

func DecryptingReader added in v1.6.1

func DecryptingReader(secretKeyOrPwd string, src io.Reader) (io.Reader, error)

func EncryptData added in v1.6.0

func EncryptData(keyOrPwd string, data []byte, compress bool) (string, error)

func EncryptStream added in v1.6.0

func EncryptStream(keyOrPwd string, dst io.Writer, src io.Reader, compress bool) (err error)

func EncryptingWriter added in v1.6.1

func EncryptingWriter(keyOrPwd string, dst io.Writer, compress bool) (io.WriteCloser, error)

func GetPublicKey

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

func IsPubKeyStr added in v1.6.0

func IsPubKeyStr(pubKeyStr string) bool

func IsSecretKeyStr added in v1.6.0

func IsSecretKeyStr(secretKeyStr string) bool

func NewSecretKey

func NewSecretKey() (sk string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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