wifiNameAnoymizer function
Datum
wifiNameAnoymizer(
- Datum datum
A WifiDatum 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
Datum wifiNameAnoymizer(Datum datum) {
assert(datum is WifiDatum);
WifiDatum wd = datum as WifiDatum;
return wd
..ssid = (wd.ssid != null)
? sha1.convert(utf8.encode(wd.ssid!)).toString()
: wd.ssid;
}