internal string CalculateSha1(string path)
{
var hashAlgorithm = System.Security.Cryptography.SHA1.Create();
byte[] hash = hashAlgorithm.ComputeHash(File.ReadAllBytes(path));
hash[0] ^= 0xe9; // Change hash so different from previous (GhostScript)
return Hexify(hash);
}