crypt

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2025 License: MIT Imports: 12 Imported by: 5

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
}

func NewAES

func NewAES(config config.Config, json foundation.Json) (*AES, error)

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 ServiceProvider

type ServiceProvider struct {
}

func (*ServiceProvider) Boot

func (r *ServiceProvider) Boot(app foundation.Application)

func (*ServiceProvider) Register

func (r *ServiceProvider) Register(app foundation.Application)

func (*ServiceProvider) Relationship added in v1.16.0

func (r *ServiceProvider) Relationship() binding.Relationship

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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