-
Notifications
You must be signed in to change notification settings - Fork 85
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
WASM/no_std support #22
Comments
|
We have released |
I'm not sure if this is just a simple misconfig-uration on my part, but I'm not able to get However, from past experience, # Cargo.toml
# ... snip ...
scrypt = "0.3" // lib.rs
extern crate scrypt;
use scrypt::{ScryptParams, scrypt_check, scrypt_simple};
// ... snip ...
// in some function:
let params = ScryptParams::new(15, 8, 1).unwrap();
let password = "some password";
let hash = scrypt_simple(password, ¶ms).expect("Rng failed"); Compiled with: $ cargo build --lib --release --target wasm32-unknown-unknown When run, the script reports that the Rng failed. I'm not exactly sure where this error occurs - I think it might be while filling the salt with random values in |
Have you tried to add this line to your Cargo.toml?
AFAIK |
I came here from rust-crypto-wasm because of this error.
I wanted to use this crate with a
wasm32-unknown-unknown
target and wondering is there any possibility to add wasm support?I faced the following error when I tried to add
scrypt
:The text was updated successfully, but these errors were encountered: