|
|
|
|
|
by davidjohnstone
1901 days ago
|
|
> I'd imagine that could be more successful on here, heh. You're right about that! If I was to make a HN-friendly version, I'd probably make static JSON files that list all the numbers, indexed by the first four or so digits. When you enter a number, the first digits are sent to the server, and the appropriate JSON file is returned. That list is then searched client-side for the full number and the result displayed. The code should be simple and easy to verify that the full number doesn't leave the client, while maintaining the same simple user interface I already have. Variations of this idea could be more secure (i.e., only enter the start of the number and search for your number yourself in a long list) but less user-friendly. I don't actually have any plans on implementing this though. I feel satisfied enough with what I have. (I don't think hashing would work because the address space is too small and reversing is too easy. There aren't any email addresses.) |
|