Is it possible in javascript to use AES in ECB mode with the Pkcs5 padding scheme?
The reason why i want to use the ECB mode is because it is desired by the client.
Is it possible in javascript to use AES in ECB mode with the Pkcs5 padding scheme?
The reason why i want to use the ECB mode is because it is desired by the client.
Share Improve this question asked Jan 17, 2013 at 15:52 user1987623user1987623 211 silver badge2 bronze badges 3- AFAIR JavaScript does not include any AES functionality by default, therefore if you can use AES/ECB/PKCS5 depends on the JavaScript cryptography library you use. – Robert Commented Jan 17, 2013 at 15:55
- I've already searched the web for encryption libraries, but I didn't find one that supports this bination. To be honest i don't know much about encryption, so any information would be helpful. – user1987623 Commented Jan 17, 2013 at 16:00
- @user1987623 I am looking for exactly same thing have you found anything on this? – 2intor Commented Nov 28, 2016 at 4:53
1 Answer
Reset to default 4http://code.google./p/crypto-js looks like it has AES, ECB mode, and PKCS5 padding.
See http://code.google./p/crypto-js/source/browse/branches/3.x/src/cipher-core.js line 369, and http://code.google./p/crypto-js/source/browse/branches/3.x/src/mode-ecb.js.
Disclaimer: I know absolutely nothing about how well tested, audited, or maintained this library is, so you should do your own research on it before using it for anything important.