[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Add support for base64url variant

From: Achim Gratz
Subject: Re: Add support for base64url variant
Date: Wed, 12 Jun 2019 21:24:39 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)

Stefan Monnier writes:
>> Base32url is useful for use on case-insensitive filesystems or
>> with case-insensitive protocols.
> That's what it's designed for, yes, but I can't think of any example
> where that's useful.  E.g. for case-insensitive filenames, using a hash
> instead of a base32 encoding was a better option in all the cases I've
> encountered because I only needed "one-way" and it conveniently bounds
> the max file name length.

I've used it for sharding into a blobstore on NTFS/SMB (two characters
for first level, so tree width of 1024).  The key is indeed a hash
(SHA512), so the probability of a collision would be low enough to just
ignore the case (for only 512 wide tree), but it felt cleaner to encode
via base32url instead.

+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Samples for the Waldorf Blofeld:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]