We already know about DES algorithm method
The RSA Public Key Encryption is useful method for Encryption and Decryption .The Code behind the Method is mention below.
using
System;
using
System.Collections;
using
System.Collections.Generic;
using
System.Data;
using
System.Diagnostics;
using
System.Security;
using
System.Security.Cryptography;
using
System.Text;
using
System.IO;
public
class Tester
{
public static
void Main()
{
RSACryptoServiceProvider myRSAProvide =
new
RSACryptoServiceProvider();
string strCrypt = null;
byte[] bteCrypt = null;
byte[] bteResult = null;
try
{
strCrypt =
"12345678";
bteCrypt =
Encoding.ASCII.GetBytes(strCrypt);
bteResult =
myRSAProvide.Encrypt(bteCrypt, false);
Console.WriteLine(Encoding.ASCII.GetString(bteResult));
}
catch (CryptographicException
ex)
{
Console.WriteLine(ex.Message);
}
string strResault =
null;
byte[] bteDecrypt =
null;
try
{
bteDecrypt =
myRSAProvide.Decrypt(bteResult, false);
strResault =
Encoding.ASCII.GetString(bteDecrypt);
Console.WriteLine(strResault);
}
catch (CryptographicException
ex)
{
Console.WriteLine(ex.Message);
}
Console.ReadLine();
}
}
It is very simple pubic key encryption and decryption method.
Dileep Kumar PatelPosted Sep 16, 2013, 6:31 AM
For key of encryption you can use SSL Base application like that Encryption and Decription method in .net.For key of encryption you can read cryptography.
Nermin HuskicPosted Aug 2, 2013, 12:32 PM
I can see that noone ask you anything about this. Can you explain me what is here key of encryption?
Dileep Kumar PatelPosted May 8, 2012, 7:18 AM
.NET Framework 4.5 is a very good looking wise and also User Friendly. .NET Framework Use With Visual Studio 2011.