| 1 | <?php |
||
| 11 | class LegacyEncryptor implements EncryptorInterface |
||
| 12 | { |
||
| 13 | const IDENTITY = 'legacy'; |
||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | private $secret; |
||
| 18 | |||
| 19 | 1 | public function __construct($secret) |
|
| 23 | |||
| 24 | public function encrypt($data) |
||
| 28 | |||
| 29 | 1 | public function decrypt($data) |
|
| 38 | |||
| 39 | 1 | public function getIdentifier(): IdentityInterface |
|
| 43 | } |