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

RSA.generate(2048) not working in web app #82

Closed
mgeilich opened this issue Dec 12, 2024 · 3 comments
Closed

RSA.generate(2048) not working in web app #82

mgeilich opened this issue Dec 12, 2024 · 3 comments

Comments

@mgeilich
Copy link

keyPair = await RSA.generate(2048); // Does not complete!

@appetize-docs
Copy link

hi @mgeilich, thanks for report this, could you provide more details like which version are you using and flutter doctor output

@appetize-docs
Copy link

also make sure follow the setup instructions for web
https://pub.dev/packages/fast_rsa#web

add to you pubspec.yaml

assets:
  - packages/fast_rsa/web/assets/worker.js
  - packages/fast_rsa/web/assets/wasm_exec.js
  - packages/fast_rsa/web/assets/rsa.wasm

@mgeilich
Copy link
Author

My problem is that I had the assets listed in the wrong pubspec.yaml. I have multiple...
All fixed now, thanks for the quick response!

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