Beispiel #1
0
        public static string Decrypt(string word, int id)
        {
            EISEncrypt sm = new EISEncrypt();

            if (word.Contains("[sparklock]"))
            {
                return(sm.DecryptString(word.Replace("[sparklock]", "")).Replace($"&&&***{id}", ""));
            }
            else
            {
                return(word);
            }
        }
Beispiel #2
0
        public static string Encrypt(string word, int id)
        {
            EISEncrypt sm = new EISEncrypt();

            if (!word.Contains("[sparklock]"))
            {
                return(sm.EncryptToString($"{word}&&&***{id}") + "[sparklock]");
            }
            else
            {
                return(word);
            }
        }