/// <summary> /// Decrypts the specified text. /// </summary> /// <param name="text">The text to decode.</param> /// <param name="passcode">The passcode to use.</param> /// <returns>The decrypted string.</returns> public static string Decrypt(this string text, string passcode) { return(AesEncrypter.Decrypt(text.Base64Decode(), passcode)); }
/// <summary> /// Encrypts the specified text. /// </summary> /// <param name="text">The text to encrypt.</param> /// <param name="passcode">The passcode to use.</param> /// <returns>An encripted string.</returns> public static string Encrypt(this string text, string passcode) { return(AesEncrypter.Encrypt(text, passcode).Base64Encode()); }