Exemplo n.º 1
0
        private static string ReplaceTokens(Cxt cxt, string s, User user)
        {
            s = s.Replace("%username%", user.UserName);
            s = s.Replace("%password%", UCrypto.Decrypt(user.Password));
            s = s.Replace("%name%", user.FirstName + " " + user.LastName);
            //s = s.Replace("%signinlink%", KeyValues.Instance.GetKeyValue(KeyValueE.UrlInfiChess).Value);
            KeyValue keyValue = new KeyValue(cxt, (int)KeyValueE.UrlInfiChess);

            s = s.Replace("%signinlink%", keyValue.Value);
            return(s);
        }
Exemplo n.º 2
0
        public static string ReadToEnd2(string path)
        {
            string encryptedValue = string.Empty;

            encryptedValue = File.ReadAllText(path);

            string decryptedValue = string.Empty;

            decryptedValue = UCrypto.Decrypt(encryptedValue);

            return(decryptedValue);
        }