Esempio n. 1
0
        /// <summary>
        /// Encrypt text
        /// </summary>
        /// <param name="text">Text to be a encrypt</param>
        /// <param name="password">Password used for encrypt</param>
        /// <returns></returns>
        public static string Encrypt(this string text, string password = "")
        {
            var crypt = new Crypt(password);

            return(crypt.Encrypt(text));
        }
Esempio n. 2
0
        public static string EnCrypt(string texto, string pass)
        {
            var crypt = new Crypt(pass);

            return(crypt.Encrypt(texto));
        }