utils

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 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

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

func DecryptingReader

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

func EncryptData

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

func EncryptStream

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

func EncryptingWriter

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

func GetPublicKey

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

func IsPubKeyStr

func IsPubKeyStr(pubKeyStr string) bool

func IsSecretKeyStr

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