mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
Add a password strength meter to SetupActivity. Dev task #42.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package org.briarproject.api.crypto;
|
||||
|
||||
public interface PasswordStrengthEstimator {
|
||||
|
||||
float NONE = 0;
|
||||
float WEAK = 0.4f;
|
||||
float QUITE_WEAK = 0.6f;
|
||||
float QUITE_STRONG = 0.8f;
|
||||
float STRONG = 1;
|
||||
|
||||
/**
|
||||
* Returns an estimate between 0 (weakest) and 1 (strongest), inclusive,
|
||||
* of the strength of the given password.
|
||||
*/
|
||||
float estimateStrength(char[] password);
|
||||
}
|
||||
Reference in New Issue
Block a user