4 ms·
But you don't need to encode or decode anything here? Tokens are just random strings?
by epse 4y ago
But you don't need to encode or decode anything here? Tokens are just random strings?
- adastra22 4y agoHow do you think the token is generated if not through an encoding process? Other disadvantage I forgot to mention earlier: base58 is variable length, which is a foot gun that will bite you eventually.
- formerly_proven 4y agoUsing base58 here strikes me as simply unnecessary. You could just use the base58 alphabet and directly generate random strings in that alphabet, easily and cheaply. The only thing you loose is the ability to decode into a bit shorter binary string for storage - almost certainly not worth it.