The purpose of cryptography is to protect data transmitted in the likely presence of an adversarya cryptography transformation of data is a procedure by which plain text data is disguised, or encrypted, resulting in an altered text, called ciphertext, that does not reveal the original input. The ciphertext can be reverse-transformed by a designated recipient so that the original plaintext can be recovered.Cryptography plays an essential role in1)Authentication2)Data confidentiality3)Data integrity4)Nonrepudiation
Cryptography provides an extra level of security especially at the messages and password level.Many times we used this to encrypt passwords from Plain text to encrypted string and then decrypt it.FYI, the best practice around cryptography is NOT to create your own cryptograpgy modules/API etc. instead use and rely on .NET provided one.
C# Corner. All contents are copyright of their authors.