public SHA_1_Hash Clone()
        {
            SHA_1_Hash result = new SHA_1_Hash();

            if (this.Value != null)
            {
                result.Value = new byte[this.Value.Length];
                this.Value.CopyTo(result.Value, 0);
            }

            return(result);
        }
        public SHA_1_Hash GetHash(byte[] text)
        {
            SHA_1_Hash result = new SHA_1_Hash();

            //byte[] buffer = Encoding.GetEncoding("utf-8"/*1251*/).GetBytes(text);
            byte[] buffer = new byte[text.Length];
            Array.Copy(text, buffer, text.Length);

            Initialize();

            HashData(buffer, 0, buffer.Length);

            result.Value = EndHash();

            return(result);
        }