70
1
using System;
2
using System.Security.Cryptography;
3
using System.IO;
4
using System.Text;
5
6
public class Program
7
{
8
public static void Main()
9
{
10
// declaring key
11
var key = "b14ca5898a4e4133bbce2ea2315a1916";
12
13
// encrypt parameters
14
var input = string.Concat("https://myDomain.in/", "Encrypt.aspx?query=", EncryptString(key, string.Format("emailID={0}", "myemail@gmail.com")));
15
16
Console.WriteLine("Encrypted Input: " + input);
17
18
// decrypt parameters
19
var decrptedInput = DecryptString(key, input.Substring(input.IndexOf("=") + 1));
20
Console.WriteLine("Decrypted Input: " + decrptedInput);
21
}
22
23
public static string EncryptString(string key, string plainInput)
24
{
Cached Result
The SHA384 hash of Technology crowds is: 1E164130936A24159795AB319A52B695BB28933DF99817D50802C394D3B087A114B5EFF4603B39473703A0DD9F7FFF6F