public class RandomPasswordEntropy extends Object implements Entropy
Constructor and Description |
---|
RandomPasswordEntropy(int alphaSize,
int pwordSize)
Creates a new random entropy estimate.
|
Modifier and Type | Method and Description |
---|---|
double |
estimate()
Returns the entropy bits of a randomly generated password given the size of the unique characters used
(alphabetSize) and the size of the password.
|
static double |
log2(double number)
Returns the log base 2 of a given number.
|
public RandomPasswordEntropy(int alphaSize, int pwordSize)
alphaSize
- size of the alphabet usedpwordSize
- size of the passwordpublic double estimate()
public static double log2(double number)
number
- to get the log2 ofCopyright © 2003-2024 Virginia Tech. All Rights Reserved.