public bool CodeSignatureFolderExists ()
{
// Every legit app has a folder _CodeSignature in the AppName.app Bundle
// However this folder is removed in pirated apps, because it may contain information about the buyer
// NOTE: The String "_CodeSignature" should be obsfucated to prevent tampering
var basedir = Path.Combine (Environment.GetFolderPath (System.Environment.SpecialFolder.Personal), "..");
return Directory.Exists(basedir + "/" + appName + "/_CodeSignature");
}
public bool CodeResourcesFileExists ()
{
// Every legit app has a file CodeResources in the folder _CodeSignature in the AppName.app Bundle
// However this file is removed in pirated apps, because it may contain information about the buyer
// NOTE: The String "CodeResources" should be obsfucated to prevent tampering
var basedir = Path.Combine (Environment.GetFolderPath (System.Environment.SpecialFolder.Personal), "..");
if ( CodeSignatureFolderExists () )
return File.Exists (basedir + "/" + appName + "/_CodeSignature/CodeResources");
else
return false;
}