djangosnippets.org: Latest snippets tagged with 'signing'https://djangosnippets.org/tags/signing/2008-08-27T07:24:38.059564-05:00Sign a string using SHA1, then shrink it using url-safe base65
2008-08-27T07:24:38.059564-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 or …</p>
Freely redistributable