node-bcrypt-pbkdf VS PHP-Blowfish

Compare node-bcrypt-pbkdf vs PHP-Blowfish and see what are their differences.

node-bcrypt-pbkdf

Port of the OpenBSD `bcrypt_pbkdf` function to pure Javascript (by TritonDataCenter)

PHP-Blowfish

Blowfish encryption class entirely in PHP (by themattharris)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
node-bcrypt-pbkdf PHP-Blowfish
1 1
7 22
- -
10.0 10.0
over 4 years ago almost 9 years ago
JavaScript
GNU General Public License v3.0 or later -
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

node-bcrypt-pbkdf

Posts with mentions or reviews of node-bcrypt-pbkdf. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-07-04.

PHP-Blowfish

Posts with mentions or reviews of PHP-Blowfish. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-07-04.
  • my php port of some js code is 24x as slow as the js code itself
    5 projects | /r/PHP | 4 Jul 2022
    Did you try this: https://github.com/nikic/buffer ?? But I don't think your code does the same thing between PHP and JS. If you count the number of times your `F` gets called, php does it 4mill times and JS does it 16mill times. Also, bit operations SHOULD be faster in PHP than in JS (php stores int and js stores floats last time i checked), BUT if you pass a large array by reference to a method/function, and you change it, then it will copy that array... so it will be slow. I see that in JS you do: ``` for (var i = 1; i < 16; i += 2) { x[1] ^= F(S, x8, 0) ^ P[i]; x[0] ^= F(S, x8, 4) ^ P[i+1]; } ``` But in PHP you use x[1] to calculate x[0] ``` for ($i = 1; $i < 16; $i += 2) { $x[1] ^= F($x[0]) ^ $p[$i]; $x[0] ^= F($x[1]) ^ $p[$i + 1]; } ``` So i'm pretty sure your not actually doing the same math here. In the past, I have used this implementation for reference for the blowfish algorithm (javascript to php communication) https://github.com/themattharris/PHP-Blowfish/blob/master/blowfish.php It may give you some ideas. (tried to look it up, but my brain is not into bit operations right now lol)

What are some alternatives?

When comparing node-bcrypt-pbkdf and PHP-Blowfish you can also consider the following projects:

Zephir - Zephir is a compiled high-level language aimed to ease the creation of C-extensions for PHP

buffer - PHP extension for buffer based typed arrays