crypto

package
v0.12.7-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.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 AES

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

AES does encrypt and decrypt using AES algorithm

func NewAES

func NewAES(key string) *AES

NewAES returns string cipher

func (*AES) Decrypt

func (c *AES) Decrypt(value string) (string, error)

Decrypt decrypts an encrypted text into a plain text

func (*AES) Encrypt

func (c *AES) Encrypt(value string) (string, error)

Encrypt encrypts a plain text into an encrypted text

Jump to

Keyboard shortcuts

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