encryption

package
v0.0.0-...-0cd45ec Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 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 Encryption

type Encryption struct {
	Key []byte // Secret Key
}

Encryption type stores secret key based on which data is being encrypted

func (*Encryption) Decrypt

func (e *Encryption) Decrypt(cryptoText string) (string, error)

Decrypt decrypts previously encrypted text based on a specific secret key.

func (*Encryption) Encrypt

func (e *Encryption) Encrypt(text string) (string, error)

Encrypt encrypts text based on a secret key.

Jump to

Keyboard shortcuts

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