secure

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crypter

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

func NewCrypter

func NewCrypter(key string) (*Crypter, error)

func (*Crypter) Decrypt

func (c *Crypter) Decrypt(data []byte) ([]byte, error)

Decrypt accepts raw ciphertext ([]byte)

func (*Crypter) Encrypt

func (c *Crypter) Encrypt(data []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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