encryption

package
v0.0.0-...-f08b0e3 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: Apache-2.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 Encryption

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

func NewEncryption

func NewEncryption(key string) (*Encryption, error)

func (*Encryption) Decrypt

func (e *Encryption) Decrypt(ciphertext []byte) ([]byte, error)

func (*Encryption) DecryptBase64

func (e *Encryption) DecryptBase64(ciphertext string) (string, error)

func (*Encryption) Encrypt

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

func (*Encryption) EncryptBase64

func (e *Encryption) EncryptBase64(plaintext string) (string, error)

Jump to

Keyboard shortcuts

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