crypt

package
v1.0.0-...-a0f063d Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCrypt

func NewCrypt() crypt.ICrypt

Types

type AES

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

func NewAES

func NewAES() *AES

NewAES returns a new AES hasher.

func (*AES) DecryptString

func (b *AES) DecryptString(payload string) (string, error)

DecryptString decrypts the given iv and ciphertext, and returns the plaintext.

func (*AES) EncryptString

func (b *AES) EncryptString(value string) (string, error)

EncryptString encrypts the given string, and returns the iv and ciphertext as base64 encoded strings.

type Crypt

type Crypt struct {
}

type ServiceProvider

type ServiceProvider struct {
}

func (*ServiceProvider) Boot

func (sp *ServiceProvider) Boot()

func (*ServiceProvider) Register

func (sp *ServiceProvider) Register()

Jump to

Keyboard shortcuts

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