All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.anotheria.util.PasswordGenerator Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
package net.anotheria.util;

import java.util.Random;

/**
 * A simple utility for creation of safe passwords.
 *
 * @author another
 * @version $Id: $Id
 */
public class PasswordGenerator {

	private final static int[] RANGE_BEGIN = {
			33,
			65,
			97,
	};

	private final static int[] RANGE_END = {
			59,
			90,
			122,
	};

	/**
	 * Internal holder for useable characters.
	 */
	private final static char[] CHARS;

	static{
		int sum = 0;
		for (int i=0; i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy