Example #1
0
        /// <summary>
        /// Decrypt text
        /// </summary>
        /// <param name="text">Text to be a decrypt</param>
        /// <param name="password">Password used for decrypt</param>
        /// <returns></returns>
        public static string Decrypt(this string text, string password = "")
        {
            var crypt = new Crypt(password);

            return(crypt.Decrypt(text));
        }
Example #2
0
        public static string EnCrypt(string texto, string pass)
        {
            var crypt = new Crypt(pass);

            return(crypt.Encrypt(texto));
        }