crypt

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 11 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApplication

func NewApplication() crypt.Crypt

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 Application

type Application struct {
}

type ServiceProvider

type ServiceProvider struct {
}

func (*ServiceProvider) Boot

func (crypt *ServiceProvider) Boot()

func (*ServiceProvider) Register

func (crypt *ServiceProvider) Register()

Jump to

Keyboard shortcuts

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