Simon Willison’s Weblog

Subscribe
Atom feed for urlsafe

1 item tagged “urlsafe”

2008

URLsafe base64 encoding/decoding in two lines. A much better solution than my base65 hack—if you understand how base64 padding works (I didn’t) you can use it to generate URL-safe compressed hashes. Performance should be significantly better than my version.

# 28th August 2008, 9:57 am / base64, urlsafe, base65, python