I need convert code to fivewin
public void setTexto(String texto)
{
this.texto = texto;
SHA1 sha = new SHA1CryptoServiceProvider();
byte[] data = System.Text.Encoding.ASCII.GetBytes(texto);
byte[] hash = sha.ComputeHash(data);
StringBuilder sb = new StringBuilder();
for (int i = 0; i < hash.Length; i++)
{
sb.Append(hash[i].ToString("x2"));
}
textoAssinado = sb.ToString();
}
public void setTexto(String texto)
{
this.texto = texto;
SHA1 sha = new SHA1CryptoServiceProvider();
byte[] data = System.Text.Encoding.ASCII.GetBytes(texto);
byte[] hash = sha.ComputeHash(data);
StringBuilder sb = new StringBuilder();
for (int i = 0; i < hash.Length; i++)
{
sb.Append(hash[i].ToString("x2"));
}
textoAssinado = sb.ToString();
}