4 ms·
How does this work?
by kernelPan1c 8y ago
How does this work?
- tickthokk 8y agoI'd bet money it's just binary represented in uppercase and lowercase. AAaAAaAAaaaaaaaaaaAaAAaaAAAaAAaAAAaa = 110110110000000000101100111011011100 = [Some ID in the database]
- crayonixel 8y agoThe source code (JavaScript) is quite readable. This seems to be the backing store: https://www.jsonstore.io/9cfa993cd55704f2254949dc21a5f3a7a63ae2c6425fb242b575a1951d359b69 https://www.jsonstore.io/9cfa993cd55704f2254949dc21a5f3a7a63... With the ability to get a specific key from this style of URL: https://www.jsonstore.io/9cfa993cd55704f2254949dc21a5f3a7a63ae2c6425fb242b575a1951d359b69/AAAAAAAAAAaAaAAaAAaAAaaAAaaaaAaaaaAAaAAa https://www.jsonstore.io/9cfa993cd55704f2254949dc21a5f3a7a63... And post to it to set a value. There's no security though - anyone can overwrite any URL - e.g. in the console on that page: pushJSON(endpoint + '/AAAAaaAaAaaAAaaAAAAAaAAAAaAAaAAaaaAAAAaA', 'http://www.example.com/');
- fortyseven 8y agoLooks like there's a limit to the number of urls shortened... it's throwing out the old ones. Womp, womp. :P
- nyanloutre 8y agoOr some people are Curling random stuff into the JSON endpoint