Skip to content

Instantly share code, notes, and snippets.

@mataprasad
Created November 4, 2017 09:45
Show Gist options
  • Save mataprasad/5d746e57d43c197120a82a6b4e51e3c7 to your computer and use it in GitHub Desktop.
Save mataprasad/5d746e57d43c197120a82a6b4e51e3c7 to your computer and use it in GitHub Desktop.
using CrossPlatformAESEncryption.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CrossPlatformAESEncryption
{
class Program
{
static void Main(string[] args)
{
String input = "Text to encrypt";
Console.WriteLine("input:" + input);
String cipher = CryptoHelper.Encrypt(input);
Console.WriteLine("cipher:" + cipher);
//cipher = "kb1TyFRUcMaY6Z1vCRravA==";
//Console.WriteLine("cipher:" + cipher);
String output = CryptoHelper.Decrypt(cipher);
Console.WriteLine("output:" + output);
Console.ReadLine();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment