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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址