TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Method for Data Encryption
Shridhar Sharma
Jul 23
2015
Code
846
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
//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;
}
.Net
c#
Encryption in C#