Auto Generate Password In Java /servlet /Struts2
package java9r.blogspot.com;
public class AutoInc {
/** Minimum length for a decent password */
public static final int MIN_LENGTH = 70;
/** The random number generator. */
protected static java.util.Random r = new java.util.Random();
protected static char[] goodChar = { 'a', 'b', 'c', 'd', 'e', 'f', 'g',
'h', 'j', 'k', 'm', 'n', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K',
'M', 'N', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
'2', '3', '4', '5', '6', '7', '8', '9', };
/* Generate a Password object with a random password. */
public static String getNext() {
StringBuffer sb = new StringBuffer();
for (int i = 0; i < MIN_LENGTH; i++) {
sb.append(goodChar[r.nextInt(goodChar.length)]);
}
return sb.toString();
}
public static void main(String[] argv) {
for (int i = 0; i < 1; i++) {
System.out.println(AutoInc.getNext());
}
}
}
I am glad that I saw this post. It is informative blog for us and we need this type of blog thanks for share this blog, Keep posting such instructional blogs and I am looking forward for your future posts.
ReplyDeleteCyber Security Projects for Final Year
JavaScript Training in Chennai
Project Centers in Chennai
JavaScript Training in Chennai
En Son Çıkan Perde Modelleri
ReplyDeletesms onay
TÜRK TELEKOM MOBİL ÖDEME BOZDURMA
Nft nasıl alınır
ankara evden eve nakliyat
trafik sigortası
dedektör
web sitesi kurma
aşk kitapları
Smm Panel
ReplyDeletesmm panel
Ä°s ilanlari blog
instagram takipçi satın al
hirdavatciburada.com
beyazesyateknikservisi.com.tr
Servis
Jeton Hile Ä°ndir
çekmeköy vestel klima servisi
ReplyDeleteataÅŸehir vestel klima servisi
çekmeköy toshiba klima servisi
ataÅŸehir toshiba klima servisi
çekmeköy beko klima servisi
maltepe lg klima servisi
maltepe alarko carrier klima servisi
kadıköy alarko carrier klima servisi
maltepe daikin klima servisi