encryption

package
v0.0.0-...-4ae6852 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(base64Key string) (*Client, error)

func NewWithBytes

func NewWithBytes(key []byte) (*Client, error)

func (*Client) Decrypt

func (e *Client) Decrypt(ciphertextStr string) (string, error)

Decrypt decrypts the base64 encoded ciphertext using AES-GCM

func (*Client) Encrypt

func (e *Client) Encrypt(plaintext []byte) (string, error)

Encrypt encrypts the plaintext using AES-GCM and returns a base64 encoded string

Jump to

Keyboard shortcuts

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