PHP-Blowfish

Blowfish encryption class entirely in PHP (by themattharris)

PHP-Blowfish Alternatives

Similar projects and alternatives to PHP-Blowfish

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better PHP-Blowfish alternative or higher similarity.

PHP-Blowfish reviews and mentions

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)

Stats

Basic PHP-Blowfish repo stats
1
22
10.0
almost 9 years ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com