antelle / argon2-browser

Argon2 library compiled for browser runtime
https://antelle.net/argon2-browser
MIT License
363 stars 78 forks source link

Javascript in Vanilla mode does not work out from the box. #60

Closed rajhlinux closed 3 years ago

rajhlinux commented 3 years ago

Papa Johns Garlic Sauce Recipe

What I am suppose to do to make Argon2-browser to work?

antelle commented 3 years ago

Hi! Network can reveal why argon2.js is not found.

rajhlinux commented 3 years ago

Papa Johns Garlic Sauce Recipe

Shows that "argon.js" file not found.

There are three versions of "argon.js" in the master file, which one to use and place it in the index source?

antelle commented 3 years ago

It won't work on file:// schema, host it somewhere.

rajhlinux commented 3 years ago

Alright, will let you know if it works.

rajhlinux commented 3 years ago

Papa Johns Garlic Sauce Recipe

Alright I installed "XAMPP". I only placed the vinalla JS example folder to be hosted. Still having the same issue but this time without the file:// error.

I checked the index.html file in the example folder and it's trying to find: node_modules/argon2-browser/lib/argon2.js There is no such directory structure in the master folder. But there is 3 of argon.js in the master folder in different directories, which particular one should I use?

antelle commented 3 years ago

have you run npm i in the example folder?

rajhlinux commented 3 years ago

No, I do not use node.js

My backend will be using pure C++ web server framework called "Dragon" it is open source and fastest in the world. Backend will not be anything other than C++. I am trying to have the client side to do the hashing rather than the back end side.

antelle commented 3 years ago

Well, you need to install node_modules in the example, as if you would do in your webapp:

image