node-sodium | Port of the lib sodium encryption library to Node.js | Encryption library
kandi X-RAY | node-sodium Summary
kandi X-RAY | node-sodium Summary
Port of the lib sodium encryption library to Node.js
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of node-sodium
node-sodium Key Features
node-sodium Examples and Code Snippets
Community Discussions
Trending Discussions on node-sodium
QUESTION
It is my understanding that a hash function will always return the same results when fed the same data. But I've been using libsodium (via node-sodium) and that is not what is happening.
I have this in my schema:
...ANSWER
Answered 2017-Feb-21 at 12:57As the name alludes, the output is salted. This means that a random string was added to the password before hashing, and also included in the output value separately.
The purpose of this is to defeat dictionary attacks. By adding a random string to each password before hashing, you ensure that the same password will hash differently, forcing the attacker to crack every password separately.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install node-sodium
Windows installs will automatically attempt to download LibSodium binary distribution, and include files, from my repo. You MUST set the msvs_version npm config variable to the appropriate Microsoft Visual Studio version you have installed before you run npm install on Windows.
Node Sodium includes the source of libsodium, so the normal install will try to compile libsodium directly from source, using libsodium's own build tools. This is the prefered method of compiling node sodium. If you can't compile libsodium from source in your platform you can download a pre-compiled binary and copy the libsodium.* library files to ./deps/build/lib folder. and copy all the include files to ./deps/build/include.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page