roberto [any]@hexbear.nettochat@hexbear.net•[Solved] Late Nite Numbers Puzzler for NerdsEnglish
6·
5 months agoIt is int to base58. uuidToShort
is the function, calling fromUUID
from short-uuid.
There are multiple base58 implementations and I think this is the one bitcoin doesn’t use, which might make an online base58 translator get it wrong. short-uuid calls it “flickrBase58.”
This gets the correct answers:
def b58encode(fid):
CHARS = '123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ'
CHAR_NUM = len(CHARS)
encoded = ''
fid = int(fid)
while fid >= CHAR_NUM:
div, mod = divmod(fid, CHAR_NUM)
encoded = CHARS[mod] + encoded
fid = div
return CHARS[fid] + encoded
In [2]: b58encode(0x2126816c89f54aab842f65b9f3a39c8b)
Out[2]: '56qHyeZvHYZitUFukWo5rz'
In [3]: b58encode(0x8b9f9c446e1b485baf00c8b0e0067d59)
Out[3]: 'ieZJYUFB83oQacsNiQ55Bt'
In [4]: b58encode(0x72bd4bd2953843f381b2b8df991a32d8)
Out[4]: 'faLTidGsoG1G1TPLKUFcJh'
Incredibly misleading quote of the paper:
That’s not the author discounting a eugenic solution, just admitting that a population cull would be practically impossible. The rest of the paragraph:
The author urges the initiation of a global depopulation project led by the UN, using what seems to be geopolitics academic jargon for “starve people, start with the poor countries.”