blob: 1e6938c29a16782e647d0c97e22a53a07937b4a5 [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?php
2
3namespace Illuminate\Contracts\Encryption;
4
5interface StringEncrypter
6{
7 /**
8 * Encrypt a string without serialization.
9 *
10 * @param string $value
11 * @return string
12 *
13 * @throws \Illuminate\Contracts\Encryption\EncryptException
14 */
15 public function encryptString($value);
16
17 /**
18 * Decrypt the given string without unserialization.
19 *
20 * @param string $payload
21 * @return string
22 *
23 * @throws \Illuminate\Contracts\Encryption\DecryptException
24 */
25 public function decryptString($payload);
26}