question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WebAssembly Support

See original GitHub issue

WebAssembly native dependencies are supported as of .NET 6 - talk demonstrating the capability

It would be great if nsec could link libsodium in WebAssembly so that the package would work in Blazor!

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Jack-Edwardscommented, Oct 11, 2022

The project I’m working to support Blazor WASM is available as a nuget package, now.

https://www.nuget.org/packages/BlazorSodium

Version 0.1.1-alpha supports:

  • RandomBytes
  • StreamCipher - ChaCha20
  • StreamCipher - XChaCha20

There are many functions remaining to add support for: https://github.com/jedisct1/libsodium.js/tree/master/wrapper/symbols

I intend to add support for everything, but it will take some time. Please reach out with any feedback.

0reactions
ektrahcommented, Nov 27, 2022

It seems there is no straight forward way to add WebAssembly support to NSec due to the dependency on libsodium. BlazorSodium looks quite promising, so I hope that this can fill the gap for now.

I’ll close this issue, though I’d be happy to add WebAssembly support to NSec if someone manages to get it to work (e.g., using a future .NET version).

Read more comments on GitHub >

github_iconTop Results From Across the Web

WebAssembly | Can I use... Support tables for HTML5 ...
"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
Read more >
WebAssembly
Developer reference documentation for Wasm can be found on MDN's WebAssembly pages. The open standards for ... WebAssembly also supports non-web embeddings.
Read more >
WebAssembly - MDN Web Docs - Mozilla
Chrome Edge WebAssembly Full support. Chrome57. Toggle history Full support. Edge16. To... CompileError Full support. Chrome57. Toggle history Full support. Edge16. To... CompileError() constructor Full support....
Read more >
Cross Browser Compatibility Score of WebAssembly
WebAssembly on Android Browser is fully supported on 97-111, partially supported on None of the versions, and not supported on 2.1-4 Android Browser...
Read more >
WebAssembly - Wikipedia
WebAssembly is supported on desktops, and mobile, but on the latter, in practice (for non-small memory allocations, such as with Unity game engine)...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found