Skip to content

frontier-reapers/killmail-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EVE Frontier Killmail Data

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();
	}
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages