Exemplo n.º 1
0
        public static string DotKey(string UserID, string UserName, string Password)
        {
            string s = UserID + Password + UserName + Password;

            while (s.Contains(" "))
            {
                int i = s.IndexOf(' ');
                s = s.Remove(i, 1);
            }
            s = s.ToUpper();
            return(IntToDotted(TCipher.csHashint32(s)));
        }
Exemplo n.º 2
0
        private static int ProcessInput(string s)
        {
            while (s.Contains(" "))
            {
                int i = s.IndexOf(' ');
                s = s.Remove(i, 1);
            }
            s = s.ToUpper();
            int v = TCipher.csHashint32(s);

            return(v);
        }
Exemplo n.º 3
0
 public static int GetPassword(string p, string key)
 {
     return(TCipher.csHashint32(TCipher.SliceAndDice(p + key)));
 }