Question How to make a SQL KeyGen?

Harry

Software Engineer
Premium Member
Messages
1,258
Reaction score
962
Points
748
So I wanna know (this is for education) how to make a button on my website write a random key to a SQL database (a new row) and then send it via email to the person who brought it after paying from PayPal?

A little complicated, but Ill make it simple below:

[Buy This Now] -> *Goes to PayPal* [Pay $5 to get a key] -> *Pays the $5* -> email is sent to the users PayPal showing:

Blah Blah Blah
Key: ABC123

but ABC123 is randomly generated and place in the database.
People can then go to my tool and paste it and login :smile:

Thanks :grinning:
 

Craze

Alt + F4
Messages
229
Reaction score
163
Points
678
Not sure on this one, maybe log the previous purchase as a variable and send you it but add 1?
 

Jengis

New Member
Messages
1
Reaction score
0
Points
1
Haven't done any web programming before but IIRC, if you have a forum which supports SQL connections, you can make a database filled with usernames and the keys that belong to them along with their HWID or anything else to prevent others from using the key. In VB.net, you can then connect to the database, read, write, do whatever you need to, etc... though this is only at the top of my head and I can't remember quite how to do it exactly.
 

REEILYMods

Modder
Messages
65
Reaction score
37
Points
568
I don't know how to do it in Sql but I have doen a password generator in c++, kinda similar to a key generator...if you want the source feel free to pm me :smile:
 

Harry

Software Engineer
Premium Member
Messages
1,258
Reaction score
962
Points
748
Not sure on this one, maybe log the previous purchase as a variable and send you it but add 1?
Haven't done any web programming before but IIRC, if you have a forum which supports SQL connections, you can make a database filled with usernames and the keys that belong to them along with their HWID or anything else to prevent others from using the key. In VB.net, you can then connect to the database, read, write, do whatever you need to, etc... though this is only at the top of my head and I can't remember quite how to do it exactly.
I don't know how to do it in Sql but I have doen a password generator in c++, kinda similar to a key generator...if you want the source feel free to pm me :grinning:
Thanks for the help (sorry for the late reply, I forgot about this thread). I'm using an alternative :grinning: Have a good day :smile:
 
Top