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.

emcc -s MODULARIZE=1 generates invalid argon2.js

See original GitHub issue

@antelle ,

first of all thank you for this great repo.

I have cloned and build the repo without any problem with your version. No problem with plain Javascript. However, I am trying to load the wasm into Angular 10.

To do so, I have modified the build-wasm.sh adding to the -DCMAKE_EXE_LINKER_FLAGS= the emcc option -s MODULARIZE=1 to be able to load it easily from Typescript. Doing this, the generated argon2.js is no longer valid.

Can you try to add this option and compile to confirm that it’s not due to my setup? Thank you for considering / your help.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
antellecommented, Aug 12, 2020

These perl lines fix some stuff added by default by Emscripten. I already can’t remember what it was then.

0reactions
glihmcommented, Aug 12, 2020

It works great. 👍

I do apologize I didn’t try to understand the perl lines first… Thank you for the update, and once again, a very nice and clean job you’ve done!

Best

Read more comments on GitHub >

github_iconTop Results From Across the Web

argon2_elixir/argon2.ex at master - GitHub
Argon2 is a memory-hard password hashing function which can be used to hash. passwords for credential storage, key derivation, or other applications.
Read more >
argon2 - npm
It's possible to hash using either Argon2i, Argon2d or Argon2id (default), and verify if a password matches a hash. To hash a password:...
Read more >
Zero to Hashing in under 10 Minutes: Argon2 in Nodejs
Let's take a look at what Argon2 does, why it was necessary, then how to build a simple Node.js application that uses it...
Read more >
Dimitri Witkowski argon2-browser Issues - Giters
Dimitri Witkowski argon2-browser: Argon2 library compiled for browser runtime. ... emcc -s MODULARIZE=1 generates invalid argon2.js. Closed 2 years ago 5 ...
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