Posts

Showing posts with the label Algorithm

Symmetric Cryptography

Image
This is the simplest kind of Cryptography that involves only one secret key to encrypt and decrypt information . It is also known as “Secret Key Cryptography”. Both Sender and receiver should know the key to be able to communicate securely. For Example: if Mahesh & Shalini wants to communicate using symmetric-key cryptography then both would have to devise key and use it for every communication. So Now, Mahesh encrypts his message using shared key, sends encrypted message to Shalini , then Shalini uses the same key again decrypt message to read. To demonstration symmetric-key cryptography , I will use AES ( Advanced Encryption Standard ) & .Net Framework in-build library “ System.Security.Cryptograph ” Output:

What do you mean by Hashing?

Hashing is process of converting any size of data into fix size of data by performing mathematical operations. A message to be hashed is called input; the Algorithm is used to do so is called hash function; the output is called hash value. There are many algorithm which used to generate hash value like MD5, SHA-1, SHA-256, Tiger etc.  Hash function generates a unique value, this means two input always generates different hash value.    Hash value can not be decrypt once it's hashed, this is the difference between encryption and hash. Encrypted value can be decrypt using keys but we can not extract input from Hash value. Common use of Hash is to store password into database.