I am trying to encrypt json encoded string from laravel's default encryption. But i am not sure it's using the AES-256-CBC The reason behind this i am also trying same encryption from AES custom class.
What i did.
json_encode an array
set the key ,mode and blocksize in AES custom class and generating the token.
encrypt the token.
set encrypted token using setData
decrypt using AES custom class
Result is same as i was having in step1. When i tried to encrypt (Crypt::encrypt($requestToken);) and decrypt (Crypt::decrypt($encrypt)) is giving correct result. Now the problem is i am encrypting through (Crypt::encrypt($requestToken);) and want to decrypt through AES custom class. I am not sure that client is having laravel or not .