2
010001111
36d

Key Generation.

Can anybody point to a informative page on how exactly the typical game keys in 4/5 char blocks are created and what data is held in the backend?

Comments
  • 0
    @linuxxx hoping you know something on that topic
  • 0
    "Partial key verification" is something you may want to google. I haven't used it myself, but I remember that keyword.
  • 0
    The key generation nowadays are zoomers
  • 0
    I have no clue 😅
  • 1
    Aight. I just made a 5-pair secure random number with between 1e+8 and 1e+9, convert each pair into base62 and stored the sum of each number as base36 inside the DB. I hope that takes the least amount of storage.

    To validate I simply split the pairs again, convert the base62 into numbers and add the numbers again.

    I also had a encryption method without storing a checksum in the DB, but that couldn't be done in order to secure trace each created key.
  • 1
    @010001111 What's your goal here? Saving bytes? Protecting keys in case of DB leak? Something else? If you don't want fancy math and benefits of PKV, why don't you just store raw keys as strings? Also, how are you going to verify key validity? Will it work offline?
Add Comment