Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
"Partial key verification" is something you may want to google. I haven't used it myself, but I remember that keyword.
-
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. -
@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?
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?
question