|
|
@@ -7,7 +7,8 @@ class PhoneHelper
|
|
7
|
7
|
public static function encrypt(string $phone): string
|
|
8
|
8
|
{
|
|
9
|
9
|
$key = config('app.phone_encrypt_key');
|
|
10
|
|
- $iv = random_bytes(16);
|
|
|
10
|
+ // $iv = random_bytes(16);
|
|
|
11
|
+ $iv = "77f*eb51d38[b947";
|
|
11
|
12
|
$encrypted = openssl_encrypt($phone, 'AES-128-CBC', $key, 0, $iv);
|
|
12
|
13
|
return base64_encode($iv . '||' . $encrypted);
|
|
13
|
14
|
}
|