Security C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;
public class Security
{
    public static string GenerateHash(string texto)
    {
        UnicodeEncoding Ue = new UnicodeEncoding();
        byte[] ByteSourceText = Ue.GetBytes(texto);
        MD5CryptoServiceProvider Md5 = new MD5CryptoServiceProvider();
        byte[] ByteHash = Md5.ComputeHash(ByteSourceText);
        return Convert.ToBase64String(ByteHash);
    }
}