jedisct1 / libsodium.js

libsodium compiled to Webassembly and pure JavaScript, with convenient wrappers.
Other
969 stars 138 forks source link

Documentation #276

Closed claudiojulioferraz closed 3 years ago

claudiojulioferraz commented 3 years ago

Hello! Is there any guide on how to use this library? Or do I have to read the source code for this project and the libsodium documentation and relate one thing to the other?

Automatically translated.

jedisct1 commented 3 years ago

Functions are the same as in the C version, and work the same way. The only difference is that array sizes are implicit.

The README file has some information about the peculiarities of the JS wrappers, but other than that, you can refer to the C documentation.

claudiojulioferraz commented 3 years ago

Understand. I don't program in C, but it doesn't seem difficult to understand. It would be nice to have javascript examples of each of the functions just to make things faster. Thanks!

Automatically translated.

yukal commented 3 years ago

Can you please add a description of why should I use this library in my NodeJS projects? Why, and what is the difference between this and the native library crypto of NodeJS? What algorithms does this library use under the hood?