buildWinUniqueId static method
Builds the md5 device identifier from a set of stable hardware ids.
Extracted from winUniqueIdentifier so the hashing logic is unit-
testable without spawning wmic processes. Only stable hardware ids
may be supplied — never wall-clock time, or the identifier will change
on every call.
Implementation
@visibleForTesting
static String buildWinUniqueId(Iterable<String> ids) {
final all = ids.join();
return md5.convert(utf8.encode(all)).toString();
}