wifiNameAnonymizer function
Data
wifiNameAnonymizer(
- Data data
A Wifi anonymizer function. Anonymizes the wifi name (SSID) of the wifi network. Wifi network names may contain participants' or house holds' real name because people use their names to name their wifi.
Implementation
Data wifiNameAnonymizer(Data data) {
assert(data is Wifi);
Wifi wd = data as Wifi;
return wd
..ssid = (wd.ssid != null)
? sha1.convert(utf8.encode(wd.ssid!)).toString()
: wd.ssid;
}