mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 05:09:53 +01:00
hotspot: remove 5 and S, as well as i, l and 1
This commit is contained in:
@@ -432,9 +432,10 @@ class HotspotManager {
|
|||||||
return "WIFI:S:" + ssid + ";T:WPA;P:" + password + ";;";
|
return "WIFI:S:" + ssid + ";T:WPA;P:" + password + ";;";
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final String digits = "123456789"; // avoid 0
|
// exclude chars that are easy to confuse: 0 O, 5 S, 1 l I
|
||||||
private static final String letters = "abcdefghijkmnopqrstuvwxyz"; // no l
|
private static final String digits = "2346789";
|
||||||
private static final String LETTERS = "ABCDEFGHJKLMNPQRSTUVWXYZ"; // no I, O
|
private static final String letters = "abcdefghijkmnopqrstuvwxyz";
|
||||||
|
private static final String LETTERS = "ABCDEFGHJKLMNPQRTUVWXYZ";
|
||||||
|
|
||||||
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