crypt

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: GPL-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 CryptService

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

func NewCryptService

func NewCryptService(key []byte) CryptService

func (CryptService) Decrypt

func (s CryptService) Decrypt(encrypted []byte) ([]byte, error)

func (CryptService) Encrypt

func (s CryptService) Encrypt(plaintext []byte) ([]byte, error)

func (CryptService) GenerateNonce

func (s CryptService) GenerateNonce() []byte

Jump to

Keyboard shortcuts

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