cipher

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: BSD-3-Clause Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cipher

type Cipher struct {
	AEAD cipher.AEAD
}

func New

func New(key string) (x *Cipher, err error)

func (*Cipher) Decode

func (x *Cipher) Decode(ciphertext string) (data []byte, err error)

func (*Cipher) Encode

func (x *Cipher) Encode(data []byte) (ciphertext string, err error)

Jump to

Keyboard shortcuts

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