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

Native crypto module could not be used to get secure random number #119

Closed
dgarcia360 opened this issue Feb 11, 2020 · 2 comments
Closed

Comments

@dgarcia360
Copy link

npx staticrypt index.html test -o index.html throws the following error:

Native crypto module could not be used to get secure random number.

A quick fix could be to use a previous version of crypto-js:

@robinmoisson
Copy link
Owner

That's strange - 3.1.9-1 should be unaffected and this is the version staticrypt uses and embeds in the encrypted file. So I can't reproduce. It's been a while - if you're still experiencing the issue can you give more info on your setup, like running npm i and checking the crypto-js version in the package-lock.json?

@robinmoisson
Copy link
Owner

I can't reproduce but feel free to reopen / comment if you still have the issue.

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