/// <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)); }
public static string EnCrypt(string texto, string pass) { var crypt = new Crypt(pass); return(crypt.Encrypt(texto)); }