aes

package
v0.0.0-...-ae06814 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncryptionService

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

EncryptionService encrypts value using AES Don't create it directly! Use constructor NewEncryptionService instead!

func NewEncryptionService

func NewEncryptionService(secret string) (*EncryptionService, error)

NewEncryptionService creates EncryptionService structure.

func (EncryptionService) Decrypt

func (service EncryptionService) Decrypt(data []byte) ([]byte, error)

Decrypt decrypts some []byte data

func (EncryptionService) Encrypt

func (service EncryptionService) Encrypt(data []byte) ([]byte, error)

Encrypt encrypts some []byte data

Jump to

Keyboard shortcuts

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