Private String geraHash(String Arquivo)
{
String HashGerado;
ASCIIEncoding textConverter = newASCIIEncoding();
MD5CryptoServiceProvider Md5Provider = new MD5CryptoServiceProvider();
Byte[] ArquivoByte;
Arquivo = Arquivo.Replace("\r","").Replace("\n","").Replace("\t","");
ArquivoByte = textConverter.GetBytes(Arquivo);
ArquivoByte = Md5Provider.ComputerHash(ArquivoByte);
HashGerado = ToHexString(ArquivoByte);
return HashGerado;
}