mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-11 18:29:05 +01:00
Increase password length for app-sharing hotspot.
This makes it impractical for a nearby attacker to brute-force the password in order to inject malware into the download.
This commit is contained in:
@@ -432,7 +432,8 @@ class HotspotManager {
|
||||
|
||||
@RequiresApi(29)
|
||||
private String getPassword() {
|
||||
return getRandomString(8);
|
||||
return getRandomString(4) + "-" + getRandomString(4) + "-" +
|
||||
getRandomString(4) + "-" + getRandomString(4);
|
||||
}
|
||||
|
||||
private static String createWifiLoginString(String ssid, String password) {
|
||||
|
||||
Reference in New Issue
Block a user