A
A
aopil2021-06-07 18:03:53
JavaScript
aopil, 2021-06-07 18:03:53

How to decrypt CryptoJS?

var encrypt = CryptoJS.AES.encrypt(text, '123456');
    var decrypt = CryptoJS.AES.decrypt(encrypt, '123456');


text I send this: 666078915458975

As a result I get decoded: 363636303738393135343538393735

Question: What's wrong?)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WapSter, 2021-06-07
@aopil

var originalText = decrypt.toString(CryptoJS.enc.Utf8);

doc to read

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question