djangosnippets.org: Latest snippets tagged with 'base65'https://djangosnippets.org/tags/base65/2008-08-27T07:24:38-05:00Sign a string using SHA1, then shrink it using url-safe base652008-08-27T07:24:38-05:00simonhttps://djangosnippets.org/snippets/1004/<p>Sometimes it's useful to sign data to ensure the user does not tamper with it - for example, cookies or hidden form variables. SHA1 is cryptographically secure but weighs in at 40 characters, which is pretty long if you're going to be passing the data around in a URL ...</p>
Freely redistributable