Hey I have such Javascript code
CryptoJS.algo.AES.keySize = 32, CryptoJS.algo.EvpKDF.cfg.iterations = 1e4, CryptoJS.algo.EvpKDF.cfg.keySize = 32;
var decrypted = CryptoJS.AES.decrypt(message, passphrase);
And I need to create an analog using Python (I'm trying to use pycryptodome)
But I have several questions:
- Have can I get key and iv from passphrase?
- How should reflect all these (CryptoJS.algo.AES.keySize = 32, CryptoJS.algo.EvpKDF.cfg.iterations = 1e4, CryptoJS.algo.EvpKDF.cfg.keySize = 32) in my Python code?
- What kind of AES mode CryptoJS uses by default?
Thanks
question from:
https://stackoverflow.com/questions/65844902/cryptojs-decode-with-pycrypto 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…