optimus icon indicating copy to clipboard operation
optimus copied to clipboard

🤖 Id obfuscation based on Knuth's multiplicative hashing method for PHP.

Results 14 optimus issues
Sort by recently updated
recently updated
newest added

Hi, thanks for this package! I'm looking at this as an alternative to Hashids, which I'm avoiding due in part to: > Clearly if you have access to the salt,...

Using the left shift when the bit depth allows. I think it's more efficient.

Adds `ckrack/optimus-bundle` link to readme.

Hi! I like to use Optimus as an easy way to obfuscate Ids. I don't like to configure it every time. It would be great to have a Symfony-Flex recipe...

I have adopted Optimus assuming it would support integers up to 2^32-1. Is there a technical reason why it is limited to 2^31-1? Is it that the method only works...

Is it possible to control the generated number length? Eg. say I need 7-digits unique numbers, generated based on some integer eg. ``` 1 --> 1234567 23 --> 7654321 100...

I need some level of control over the generated integer length. I don't know if this is even possible as I don't see any updates on https://github.com/jenssegers/optimus/issues/15. If a fixed...

Hi. Using the example numbers: ``` $optimus = new Jenssegers\Optimus\Optimus(1580030173, 59260789, 1163945558); $id = "1000000000"; //10 digits $encoded = $optimus->encode($id); $original = $optimus->decode($encoded); print_r(array($id, $encoded, $original), true); // ["1000000000", 1768948822,...

For a 64 bit system, why is MAX_INT not 9223372036854775807? It may be time to change it for PHP 7/64 bit systems: http://php.net/manual/en/language.types.integer.php

I am getting the following error when I run the command `php vendor/bin/optimus spark` ``` [1] 23864 segmentation fault php vendor/bin/optimus spark ``` I am using PHP 7.1.8 (cli).