You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
616 B
PHP
29 lines
616 B
PHP
<?php
|
|
|
|
namespace Illuminate\Contracts\Encryption;
|
|
|
|
interface Encrypter
|
|
{
|
|
/**
|
|
* Encrypt the given value.
|
|
*
|
|
* @param mixed $value
|
|
* @param bool $serialize
|
|
* @return string
|
|
*
|
|
* @throws \Illuminate\Contracts\Encryption\EncryptException
|
|
*/
|
|
public function encrypt($value, $serialize = true);
|
|
|
|
/**
|
|
* Decrypt the given value.
|
|
*
|
|
* @param string $payload
|
|
* @param bool $unserialize
|
|
* @return mixed
|
|
*
|
|
* @throws \Illuminate\Contracts\Encryption\DecryptException
|
|
*/
|
|
public function decrypt($payload, $unserialize = true);
|
|
}
|