laravelencryption

package module
v0.0.0-...-7c29d6b Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 8 Imported by: 0

README

Package illuminateencryption

Implements the most subset encryption logic of illuminate\encryption ^v8.51.0

Documentation

Overview

Package laravelencryption implements the most subset encryption logic of illuminate\encryption ^v8.51.0

See also

https://github.com/illuminate/encryption

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptString

func DecryptString(value string, key string) ([]byte, error)

DecryptString Decrypt the given string without unserialization.

func EncryptByte

func EncryptByte(message []byte, key string) (string, error)

EncryptByte Encrypt a byte without serialization.

func EncryptString

func EncryptString(message, key string) (string, error)

EncryptString Encrypt a string to without serialization.

func NewEncrypter

func NewEncrypter(key string) (*encrypter, error)

NewEncrypter creates a new encrypter instance with the given key.

Parameters: - key: A string representing the encryption key.

Returns: - *encrypter: A pointer to the encrypter instance. - error: An error if the input key is not supported.

func Supported

func Supported(key string) bool

Supported Determine if the given key and cipher combination is valid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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