Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
911 views
in Technique[技术] by (71.8m points)

javascript - Decrypt AES/ECB/PKCS5PADDING type with CryptoJS

I have a detail with my decrypt. I have this text encrypted:

JRBaZHta0VEMIE4FEWuS9g==

And, with this app I excrated the text decryped:

AES Decrypted Output (Base64)

My decrypted text is this:

dGV4dG9BRW5jcmlwdGFy

I'm trying something like this:

CryptoJS.AES.decrypt({
    ciphertext: 'JRBaZHta0VEMIE4FEWuS9g=='
}, 'asumakinaSecret1', {
    mode: CryptoJS.mode.ECB,
    padding: CryptoJS.pad.Pkcs7
});

My last result is this:

{
    "words": [
        -1018515559,
        -760093474,
        953803896,
        709829674
    ],
    "sigBytes": -26
}

My problem is that I need to go from here JRBaZHta0VEMIE4FEWuS9g== to here textoAEncriptar, and I don't have a solution.

question from:https://stackoverflow.com/questions/66050845/decrypt-aes-ecb-pkcs5padding-type-with-cryptojs

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...