//you can use this method to encrypt required data and save into database in //encrypted form.
private string MethodForEncryption(string PlaintText)
{
string strMessage =string.Empty;
byte[] Encode=new byte[PlaintText.Length];
Encode=System.Text.Encoding.UTF8.GetBytes(PlaintText);
strMessage=Convert.ToBase64String(Encode);
return strMessage;
}Use this method to encrypt data.
