Content pfp
Content
@
https://warpcast.com/~/channel/apropos
0 reply
0 recast
0 reaction

Pete Horne pfp
Pete Horne
@horneps
Here's a little bit of maybe helpful maths/code for you. I need a human usable identifier system useful for entry into IOT devices like a camera in lower case to make entry easier. We all know flight reservations numbers. If you use the alphabet and numeric values, any case, you have 26+10=36 characters. This gives you a number base of 36 and so a 6 character code means you have a space of 36^6=2.1bn values or a 1/2.1bn clash risk; acceptable. Using big integer modulo math, you can take a random block hash as bits for a big int and covert it to a 6 digit code. The long integer value I call an ikey (id key), and the base 36 encoded text I call in itag (identifier tag). They can be swapped back and forth for integer indexing and string entry/readout.
0 reply
0 recast
12 reactions