mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-20 06:39:54 +01:00
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:
@@ -439,9 +439,8 @@ class HotspotManager {
|
|||||||
return "WIFI:S:" + ssid + ";T:WPA;P:" + password + ";;";
|
return "WIFI:S:" + ssid + ";T:WPA;P:" + password + ";;";
|
||||||
}
|
}
|
||||||
|
|
||||||
// exclude chars that are easy to confuse: 0 O, 5 S, 1 l I
|
// exclude chars that are easy to confuse: 0 (O), 5 (S), 1 l (I)
|
||||||
private static final String chars =
|
private static final String chars = "2346789abcdefghijkmnopqrstuvwxyz";
|
||||||
"2346789ABCDEFGHJKLMNPQRTUVWXYZabcdefghijkmnopqrstuvwxyz";
|
|
||||||
|
|
||||||
private String getRandomString(int length) {
|
private String getRandomString(int length) {
|
||||||
char[] c = new char[length];
|
char[] c = new char[length];
|
||||||
|
|||||||
Reference in New Issue
Block a user