Showing posts with label encryption. Show all posts
Showing posts with label encryption. Show all posts

Tuesday, 9 September 2014

How to Generate Random Password in asp.net Web-Forms

How to Generate Random Password in asp.net Web-Forms

          In this post, I am going to explain and demonstrate how to generate Random Password in ASP.NET with c#. 

Here are steps for that-

Encryption and Decryption in C#

Encryption & Decryption in C#

                   In this blog I’m explaining how to encrypt or decrypt data with C#.
Encryption:
Encryption is the process of translating plain text data into something that appears random and meaningless to the others.
Decryption:
Decryption is the process of translating random and meaningless data to plain text.
Why we need to use this Encryption and decryption processes. By using this process we can hide original data and display some junk data based on this we can provide some security for our data.
Here I will explain how to encrypt data and how to save that data into database after that I will show how to decrypt that encrypted data in database and how we can display that decrypted data on form.
I have a form with three fields id, username, password and here I am encrypting password data and saving that data into database after that I am getting from database and decrypting the encrypted password data and displaying that data using grid view.