public static IEnumerable<byte> UnprotectBinaryForMachine(this IEnumerable<byte> binaryData, string salt = "CoAppToolkit") {
if (binaryData.IsNullOrEmpty()) {
return Enumerable.Empty<byte>();
}
try {
return ProtectedData.Unprotect(binaryData.ToArray(), salt.ToByteArray(), DataProtectionScope.LocalMachine);
} catch {
/* suppress */
}
return Enumerable.Empty<byte>();
}