key = $key; } /** * {@inheritdoc} */ public function encrypt(string $value): string { return Crypto::encrypt($value, $this->key); } /** * {@inheritdoc} */ public function decrypt(string $cipher): string { return Crypto::decrypt($cipher, $this->key); } }