3 ms·
Source code for encode/decode is found here: https://github.com/sstephenson/xipd/blob/master/src/index.coffee#L95 https://github.com/sstephenson/xipd/blob/mast
by X-Istence 14y ago
Source code for encode/decode is found here:
https://github.com/sstephenson/xipd/blob/master/src/index.coffee#L95 https://github.com/sstephenson/xipd/blob/master/src/index.co...
- colmmacc 14y agoThanks! it reads like a 36-ary encoding of an IP address in host byte order, rather than network byte order, which is why it seems to jump around so much. Interestingly, it encodes 0.0.0.0.xip.io as 0.xip.io , but then refuses to answer for 0.xip.io. Why isn't obvious to me from reading the code, perhaps some kind of overflow condition is triggered by the right shift.