4 ms·
Similar ideas go back quite a ways. Here’s notes from a Perl library based the Skipjack cipher, this wound up inspiring some of my own work and I wound up porti
by femto113 7y ago
Similar ideas go back quite a ways. Here’s notes from a Perl library based the Skipjack cipher, this wound up inspiring some of my own work and I wound up porting it to node.js.
> One example where Crypt::Skip32 has been useful: You have numeric database record ids which increment sequentially. You would like to use them in URLs, but you don't want to make it obvious how many X's you have in the database by putting the ids directly in the URLs.
> You can use Crypt::Skip32 to scramble ids and put the resulting 32-bit value in URLs (perhaps as 8 hex digits or some other shorter encoding). When a user requests a URL, you can unscramble the id to retrieve the object from the database.
https://metacpan.org/pod/release/ESH/Crypt-Skip32-0.17/lib/Crypt/Skip32.pm https://metacpan.org/pod/release/ESH/Crypt-Skip32-0.17/lib/C...