-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use AES/ECB/PKCS5Padding in k6 #637
Comments
Try using some encryption library meant for the browser, not for node.js. You usually can't use node libraries directly in k6, since they often depend on functions in node's standard library, though browserify may help with that. In general, even if the encryption using pure JavaScript works, it would probably be relatively slow and CPU-heavy. It's probably a good idea to expose some of Go's nice encryption capabilities in the JS runtime, like we currently do with the hashing functions. I've tagged this and edited the issue title slightly so we can use it to track the effort of adding fast "native" encryption in k6. |
That's sounds great, thanks @na-- |
We think the scope of this issue is addressed by the recent introduction of the The Electronic Codebook (ECB) mode is generally considered insecure for most applications because it doesn't use an initialization vector (IV) and the same plaintext block will always produce the same ciphertext block. Due to its vulnerabilities, the WebCrypto API the module is based upon deliberately doesn't support ECB mode. Neither will k6, and if users need it, they might want to invest in developing an extension to support it. |
I want to use AES/ECB/PKCS5Padding to encrypt the payload data, and i tried to use several nodejs modules include crypto-js which used to convert to a standalone module using browserify, but it still does'nt work,
Is there any one using AES/ECB/PKCS5Padding sucessfull in K6?
The text was updated successfully, but these errors were encountered: