This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generating & Recognizing keys in java

 
lavnish lalchandani
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
After running an ant target ( that checks java code for correct coding conventions ex variable naming conventions , proper indentation etc ) I need to generate a 16 digit (or more) code
When developer tries to checkin his code its required that he/she must enter this code else he/she wont be allowed to checkin

Not sure how to generate and recognize the keys ?? are there any libraries available for same ??
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15435
41
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Generating a 16-digit code is easy, just generate 16 random digits. Or are there other, extra requirements that you're not telling us?

 
Sony Agrawal
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jesper Young wrote:Generating a 16-digit code is easy, just generate 16 random digits. Or are there other, extra requirements that you're not telling us?

As Jesper Young said , its easy to generate the random 16 digit number but how to cross verify this number.... the recognize part ???

lavnish lalchandani wrote:Not sure how to generate and recognize the keys ?? are there any libraries available for same ??
 
lavnish lalchandani
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah more worried about how to cross verify this number.
Its something like 'registration keys' example when you install a software (MS word etc) you enter a code PARTICULAR 16 digit code not ANY code
as keys are for internal employees use only ... i am looking forward for some average algorithm .. not commercial level thing

the key may include number and/or alphabets
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic