Open ImSingee opened 2 years ago
I'm a little unsure if this will be worth it, I have two concerns.
If we find that it probably isn't a good fit, users that do want to be able to use it should just be able to use web_sys.
In fact, I just can't find a way to use crypto method as easy as just using WebCrypto .
I found https://github.com/RustCrypto/block-ciphers , but because of the Warning section in their README, I'm afraid of using them. And they are really low-level so I must do many things manualy.
I'm using MagicCrypt now but it do too many things besides of just an encrypt/decrypt.
So I think, proving a way for using Web Crypto may be useful in some case.
In fact, I just can't find a way to use crypto method as easy as just using WebCrypto .
Have you given ring a try?
I've found it to be excellent, performing well when compiled to WASM. It's my go-to for encryption in Rust along with argon2 (for e.g. password hashing).
Ring is a great suggestion, but I still find myself needing WebCrypto to get access to a secure RNG.
I think it may be useful if support Web Crypto like web_sys