Test data generated by the carbon client, using the following script and then right clicking each kill and copying it to the clipboard:
var current = Clipboard.GetText();
var folder = @"C:\source\killmails";
while (true) {
Thread.Sleep(500);
var next = Clipboard.GetText();
if (next == current) continue;
var hash = ComputeSha256Hash(next);
hash.Dump();
File.WriteAllText($"{folder}\\{hash}.txt", next);
current = next;
}
static string ComputeSha256Hash(string rawData) {
using (SHA256 sha256Hash = SHA256.Create()) {
// Compute hash
byte[] bytes = sha256Hash.ComputeHash(Encoding.UTF8.GetBytes(rawData));
// Convert bytes to hexadecimal string
StringBuilder builder = new StringBuilder();
foreach (byte b in bytes) {
builder.Append(b.ToString("x2"));
}
return builder.ToString();
}
}