/// <summary> /// Encodes the specified text using the underlying /// <see cref="System.Security.Cryptography.SHA1Managed"/> instance. /// </summary> /// <param name="text">The text to decode.</param> /// <returns>Returns decoded value.</returns> public static string Encode(string text) { return(ConvertEx.ToBase16String(_digest.ComputeHash(Encoding.Unicode.GetBytes(text)))); }