3 ms·
I think the "unique IDs" part of the title throws people off and brings security to mind. "The main use of Sqids is purely visual" is what you need to know. It'
by hot_gril 3y ago
I think the "unique IDs" part of the title throws people off and brings security to mind. "The main use of Sqids is purely visual" is what you need to know. It's not necessarily for IDs, it's just a user-friendly way to encode/decode numbers.
- paulddraper 3y agoExactly. An alphanumeric encoding for integers.
- mlhpdx 3y agoAn argument could be made for calling it “compression of the string encoding”. Since HTTP is string oriented, that makes some sense as an optimization of sorts, perhaps.
- hot_gril 3y agoIt doesn't seem compressed, in fact the output of this is less compressible than the input. It's made for human interface.
- hot_gril 3y agoAlso, why is it non-sequential? That suggests it's unpredictable, but it's not. Just realized that was the thing bothering me about this.