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.
27 lines
570 B
PHP
27 lines
570 B
PHP
<?php
|
|
|
|
namespace Illuminate\Contracts\Encryption;
|
|
|
|
interface StringEncrypter
|
|
{
|
|
/**
|
|
* Encrypt a string without serialization.
|
|
*
|
|
* @param string $value
|
|
* @return string
|
|
*
|
|
* @throws \Illuminate\Contracts\Encryption\EncryptException
|
|
*/
|
|
public function encryptString($value);
|
|
|
|
/**
|
|
* Decrypt the given string without unserialization.
|
|
*
|
|
* @param string $payload
|
|
* @return string
|
|
*
|
|
* @throws \Illuminate\Contracts\Encryption\DecryptException
|
|
*/
|
|
public function decryptString($payload);
|
|
}
|