PHP Class Crypt, someline-starter

Inheritance: extends Illuminate\Support\Facades\Crypt
Mostra file Open project: someline/someline-starter Class Usage Examples

Public Methods

Method Description
decrypt ( string $payload ) : string Decrypt the given value.
encrypt ( string $value ) : string Encrypt the given value.
supported ( string $key, string $cipher ) : boolean Determine if the given key and cipher combination is valid.

Method Details

decrypt() public static method

Decrypt the given value.
public static decrypt ( string $payload ) : string
$payload string
return string

encrypt() public static method

Encrypt the given value.
public static encrypt ( string $value ) : string
$value string
return string

supported() public static method

Determine if the given key and cipher combination is valid.
public static supported ( string $key, string $cipher ) : boolean
$key string
$cipher string
return boolean