Ejemplo n.º 1
0
        public static string UnlockText(string s)
        {
            int    i   = s.IndexOf(">> ");
            string key = s.Substring(2, i - 2);

            return(Obfuscation.Lock(s.Substring(i + 3), key, false));
        }
Ejemplo n.º 2
0
        public static string LockText(string s)
        {
            string key = CreateKey();

            return("<<" + key + ">> " + Obfuscation.Lock(s, key, true));
        }