crypto

package
v0.0.0-...-b371d68 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SALT = "drink ovaltine"
	ITER = 4099
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Box

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

func New

func New(pass string) *Box

func (*Box) Decrypt

func (b *Box) Decrypt(ctext []byte, tweak []byte, additional []byte) ([]byte, error)

func (*Box) Encrypt

func (b *Box) Encrypt(ptext []byte, tweak []byte, additional []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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