PHP-Blowfish VS buffer

Compare PHP-Blowfish vs buffer and see what are their differences.

PHP-Blowfish

Blowfish encryption class entirely in PHP (by themattharris)

buffer

PHP extension for buffer based typed arrays (by nikic)
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
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
PHP-Blowfish buffer
1 2
22 41
- -
10.0 10.0
almost 9 years ago over 1 year ago
C
- 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.

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)

buffer

Posts with mentions or reviews of buffer. 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
    As for https://github.com/nikic/buffer ... ideally, I'd like this to be installable via Composer. I'm not even sure how I'd list nikic/buffer as a dependency in composer.json. For extensions you'd normally do ext-openssl or some such but nikic/buffer isn't available as an extension

What are some alternatives?

When comparing PHP-Blowfish and buffer you can also consider the following projects:

node-bcrypt-pbkdf - Port of the OpenBSD `bcrypt_pbkdf` function to pure Javascript