1

I am unable to decrypt the Crypto-js encrypt value in laravel 5.

Angular js code:

var user1 = CryptoJS.AES.encrypt($scope.form.user, $rootScope.base64Key, { iv: $rootScope.iv });
var pass1 = CryptoJS.AES.encrypt($scope.form.password, $rootScope.base64Key, { iv: $rootScope.iv });

Laravel 5 Code :

$user = Crypt::decrypt(Input::get('usr'));
$password = Crypt::decrypt(Input::get('pass'));

Error:

enter image description here

  • Hi Jose, Do you have any solution to the above query. – Ukats Oct 13 '16 at 14:45
  • Dear All, I have resolved the above mention issue with the help of below link. [link] (codedump.io/share/pPrtKofUzlK/1/…), Thanks to all of you who had helped, Thanks to Jose for neatly formatting my question. Pls mark this question as completed. – Ukats Oct 17 '16 at 15:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.