public class Password
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
Password.Strenght |
Constructor | Description |
---|---|
Password() |
Modifier and Type | Method | Description |
---|---|---|
static int |
computeEntropy(char[] password) |
Compute entropy based on number of bits.
|
static Password.Strenght |
getStrenght(int entropy) |
Returns the password's strength, based on its entropy.
|
public static int computeEntropy(char[] password)
password
- as array of characters, for security reasons.public static Password.Strenght getStrenght(int entropy)
entropy
- the number of bits of entropy