Created
January 18, 2022 12:03
-
-
Save chanakaDe/e3529e57ee2a8f16f4704f86fd0c092b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$cryptedResponse = "ea3c818e637041a0:263fef2abfa0089804a627117bff04c94a70e89488017c36fdcfac4c56dc9452318d257bce8b76d483639de5170b485585580da3ff16124e924f1d83888f65fc7e124c93e7ac2437fdfba82f8694a0d6d96d3c0541877ab0afc19d40f39894e812cd2430bc9bb1a220ec6590a523c5b59c6aaf29ac4a890d1f16d0a34f57fc6924d312329e17244594ce079c1565bc1086dc3a46d81d8d4e4705b2845b3af83dd61443cedc7af0aae56ae47122b1fd022570a2c59d3948cbd0d1938a5b5670dd40c08dec739bbae3a8ea71f1e18b2485c8f7977029e43996e1a7b4c6d40a5b4aada372b3214c85efb54b79af35200d912afd69b601d8a4f0e66688a0bfa81959d1ef6f5876590e428be25d838296470fe334a6096fe90fc9b79eb5403b1eca1a"; | |
$iv_size = openssl_cipher_iv_length('AES-256-CBC'); | |
$data = explode(":", trim($cryptedResponse)); | |
$iv = $data[0]; | |
$cipertext = hex2bin($data[1]); | |
$encryptionKey = "key_here"; | |
$decrypted = openssl_decrypt($cipertext, 'AES-256-CBC', $encryptionKey, OPENSSL_RAW_DATA, $iv); | |
dd($decrypted); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment