Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

321
Views
CryptoJS decrypt AES returns empty

I have trouble decrypting data in CryptoJS. After decrypting the data it returns an empty string Here is my code:

Javascript code

  var iv = CryptoJS.enc.Utf8.parse(dataa[5]);
  var key = 'AAAAAAAAAAAAAAAA';
  key = CryptoJS.enc.Utf8.parse(key);
  var decrypted =  CryptoJS.AES.decrypt(dataa[1], key, { iv: iv, mode: CryptoJS.mode.CBC});
  decrypted = decrypted.toString(CryptoJS.enc.Utf8);
  console.log(decrypted);
  alert(decrypted);

The alert returns an empty string. Dataa[5] is the IV and dataa1 is the data that has to decrypted. After the CryptoJS.AES.decrypt the variable decrypted is already empty. I am new to CryptoJS and do not understand why it wont work.

dataa[ 1 ] = gXodEwQf2Mk+ZW9RDiktNw

dataa[ 5 ] = s/D0LaJK1SwL9pgF/r1DAQ==

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!