Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
28 lines (25 sloc)
616 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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); | |
} |