Exemplo n.º 1
0
    public static string _________________________(string a, string b, string c, string d, string e)
    {
        string _________ = null;

        char[]   _  = MessageDigest_Algorithm.getMd5Hash(a + b + c + d + e).ToCharArray();
        UInt16[] __ = new UInt16[8];

        for (int ____________ = 0; ____________ < 8; ++____________)
        {
            StringBuilder ___ = new StringBuilder();
            ___.Append(_[____________ * 4]).Append(_[____________ * 4 + 1]).Append(_[____________ * 4 + 2]).Append(_[____________ * 4 + 3]);
            UInt16 ___________ = UInt16.Parse(___.ToString(), System.Globalization.NumberStyles.HexNumber);
            __[____________] = ___________;
        }

        char[] ____ = new char[________________];
        for (int ____________ = 0; ____________ < ________________; ++____________)
        {
            int _____________ = NetRandom.Instance.Next(16);

            ____[____________] = ______________[_____________];
        }

        string _____ = Convert.ToString(____[_________________ - 1]) + Convert.ToString(____[__________________ - 1]) + Convert.ToString(____[___________________ - 1])
                       + Convert.ToString(____[____________________ - 1]);

        UInt16 ______ = UInt16.Parse(_____, System.Globalization.NumberStyles.HexNumber);

        UInt16 _______ = 0;

        foreach (UInt16 __________ in __)
        {
            unchecked {
                _______ = (UInt16)(_______ + (__________ ^ ______));
            };
        }


        UInt16Converter ________ = _______;

        ____[_____________________ - 1]    = _______________[________.__________________________].ToCharArray()[0];
        ____[______________________ - 1]   = _______________[________.__________________________].ToCharArray()[1];
        ____[_______________________ - 1]  = _______________[________._________________________].ToCharArray()[0];
        ____[________________________ - 1] = _______________[________._________________________].ToCharArray()[1];

        _________ = new string(____);
        return(_________);
    }
Exemplo n.º 2
0
    private string ReadUniqueIdentify()
    {
        MemoryStream ByteBuilder = new MemoryStream();

        byte[] content = new byte[UNIQUELENGTH];
        using (FileStream fs = File.Open(UNIQUE_PATH, FileMode.Open)) {
            int readed = 0;
            while ((readed = fs.Read(content, 0, UNIQUELENGTH)) > 0)
            {
                ByteBuilder.Append(content, readed);
            }
        }
        UTF8Encoding utf8   = new UTF8Encoding(true);
        string       Unique = utf8.GetString(ByteBuilder.ToArray());

        //md5 hash
        Unique = MessageDigest_Algorithm.getMd5Hash(Unique);
        return(Unique);
    }