fix tests
This commit is contained in:
+2
-2
@@ -39,8 +39,8 @@ abstract class TestCase extends OrchestraTestCase
|
||||
{
|
||||
$key = substr(hash('sha256', config('delegate-auth.encrypt_key'), binary: true), 0, 32);
|
||||
$iv = random_bytes(16);
|
||||
$encrypted = openssl_encrypt(json_encode($payload), 'AES-256-CBC', $key, 0, $iv);
|
||||
$encrypted = openssl_encrypt(json_encode($payload), 'AES-256-CBC', $key, OPENSSL_RAW_DATA, $iv);
|
||||
|
||||
return base64_encode($iv).'.'.$encrypted;
|
||||
return base64_encode($iv.$encrypted);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user