Skip to content
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 Web Crypto #1

Open
davidbarratt opened this issue Jul 28, 2020 · 1 comment
Open

Use Web Crypto #1

davidbarratt opened this issue Jul 28, 2020 · 1 comment

Comments

@davidbarratt
Copy link

const CryptoJS = require('crypto-js');

I believe Cloudflare's native Web Crypto would be faster than this library.

@wesleylima
Copy link
Owner

The crypto-js AES decrypt method has a "salt" parameter that appropriately decrypts the 3rd party payload. It's the same library that was used to encrypt the 3rd party payload in the first place. Web Crypto's AES API doesn't have a salt parameter. I don't particularly want to dig into crypto-js and re-create the salting using a different library.

But I'll leave this open in case someone else wants to try it though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants