问题
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
来源:https://stackoverflow.com/questions/65844902/cryptojs-decode-with-pycrypto