encryptor

package
v0.0.0-...-41ec4f2 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encryptor

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

func NewEncryptor

func NewEncryptor(keySecret string) (*Encryptor, error)

func (*Encryptor) DecryptKey

func (e *Encryptor) DecryptKey(text []byte) (string, error)

func (*Encryptor) DecryptValue

func (e *Encryptor) DecryptValue(key string, text []byte) ([]byte, error)

func (*Encryptor) EncryptKey

func (e *Encryptor) EncryptKey(text string) ([]byte, error)

func (*Encryptor) EncryptValue

func (e *Encryptor) EncryptValue(key string, text []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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