Algorithm for unique CD-KEY generation with validation

后端 未结 5 673
忘掉有多难
忘掉有多难 2021-01-01 02:46

I am trying to create a unique CD-KEY to put in our product\'s box, just like a normal CD-KEY found in standard software boxes that users use to register the product.

<
5条回答
  •  感情败类
    2021-01-01 03:34

    Create the strings 000001, 000002, etc. or whatever and encrypt them with a public key, and that's your "CD-KEY" that the user enters. Decrypt the CD-KEY with the private key and validate that when decrypted you get a valid string with a valid provider name.

提交回复
热议问题