cha

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2025 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 EncryptData

type EncryptData struct {
	// contains filtered or unexported fields
}

func NewEncryptor

func NewEncryptor() *EncryptData

func (*EncryptData) Decrypt

func (e *EncryptData) Decrypt(encodedCiphertext string) (string, error)

Decrypt using ChaCha20

func (*EncryptData) Encrypt

func (e *EncryptData) Encrypt(plaintextBytes []byte) (string, error)

Jump to

Keyboard shortcuts

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