1
0
Fork 0
mirror of https://github.com/dirtbags/moth.git synced 2025-01-05 03:21:06 -07:00
moth/docs/tokens.md
2017-10-03 15:35:15 -06:00

652 B

Tokens

Tokens are good for a single point in a single category. They are formed by prepending the category and a colon to the bubblebabble digest of 3 random octets. A token for the "merfing" category might look like this:

merfing:xunap-motex

Entropy

3 octets provides 24 bits of entropy. This gives 16777216 possible tokens in each category. The longest contest yet run lasted 24 hours, which would give 2^24/24/60 = 11650 tokens per category per minute. I think this is a large enough pool to discourage brute-force attacks. Assuming /dev/urandom is as good as is claimed, brute-force would be the only way to attack it.