public string EncodeStringToBase64(string toEncode)
{
byte[] toEncodeAsBytes = System.Text.ASCIIEncoding.ASCII.GetBytes(toEncode);
string returnValue = System.Convert.ToBase64String(toEncodeAsBytes);
return returnValue;
}
hi , how to encode string to different type of string like if i want to convert , Yasir to kklkiuesdrre , then what should i do ?
ReplyDelete