Merge branch 'simpler-hotspot-name-pass' into 'master'

Limit hotspot name and password to only lowercase letters (on 29+)

See merge request briar/briar!1520
This commit is contained in:
akwizgran
2021-08-31 13:10:02 +00:00

View File

@@ -439,9 +439,8 @@ class HotspotManager {
return "WIFI:S:" + ssid + ";T:WPA;P:" + password + ";;";
}
// exclude chars that are easy to confuse: 0 O, 5 S, 1 l I
private static final String chars =
"2346789ABCDEFGHJKLMNPQRTUVWXYZabcdefghijkmnopqrstuvwxyz";
// exclude chars that are easy to confuse: 0 (O), 5 (S), 1 l (I)
private static final String chars = "2346789abcdefghijkmnopqrstuvwxyz";
private String getRandomString(int length) {
char[] c = new char[length];