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:
akwizgran
2023-11-28 17:42:44 +00:00
parent 1752bca2ae
commit 73fa1052cf

View File

@@ -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) {