random keygen
Posted: Fri Aug 30, 2013 10:31 pm
after some research i found this code:
to generate random keys like are used for serial or product keys...
i simply run a loop and save it in an array, like this my computer is able to generate up to 30 000 keys (ruby module turns off with 50 000...
it would be useful to provide a list of pruduct keys for purchasing custumors of your software product(to get updates with the key) or maybe also for a simple protection system...
my question now is, are the generated numbers unique in this code?
how to bulid a guid / uuid keygen? found some codes about "SecureRandom" can this be used in FS?
some link about: http://stackoverflow.com/questions/1117 ... ds-in-ruby
Code: Select all
(0..@lenght).to_a.map{|a| rand(16).to_s(16)}.jointo generate random keys like are used for serial or product keys...
i simply run a loop and save it in an array, like this my computer is able to generate up to 30 000 keys (ruby module turns off with 50 000...
it would be useful to provide a list of pruduct keys for purchasing custumors of your software product(to get updates with the key) or maybe also for a simple protection system...
my question now is, are the generated numbers unique in this code?
how to bulid a guid / uuid keygen? found some codes about "SecureRandom" can this be used in FS?
some link about: http://stackoverflow.com/questions/1117 ... ds-in-ruby