crypt

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const Binding = "goravel.crypt"

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) *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 ServiceProvider

type ServiceProvider struct {
}

func (*ServiceProvider) Boot

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

func (*ServiceProvider) Register

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

Jump to

Keyboard shortcuts

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