Creates short, obfuscated hashes of integers (as short as 6 characters for a 4-byte integer). Non-secure, intended to circumvent casual URL snooping.
Python
Switch branches/tags
Nothing to show
Permalink
Failed to load latest commit information.
build/lib/id_obfuscator files Jun 21, 2011
id_obfuscator Use print as function for Python 3 compatibility Sep 17, 2015
README files Jun 21, 2011
__init__.py files Jun 21, 2011
manage.py files Jun 21, 2011
settings.py files Jun 21, 2011
setup.py files Jun 21, 2011
urls.py files Jun 21, 2011

README

To install:

`$ python setup.py install`

To configure, make sure to put ID_OBFUSCATOR_KEY in the settings. You can generate a key by running id_obfuscator.utils.generate_secret_key()

Unlike a simple base conversion like Base58, id_obfuscator also uses an obfuscator key which ensures that adjacent ids are not simply off by one letter or number. Note that it is not secure and with enough ids with corresponding numbers, a hacker could figure out the correct ID. This is therefore recommended for lower security use.