Java tutorial
//package com.java2s; //License from project: Apache License import java.math.BigInteger; import java.security.SecureRandom; public class Main { static String passwordGenerator() { SecureRandom random = new SecureRandom(); return new BigInteger(130, random).toString(32); } }