Home / Articles / Information Security / Application Security / Chapter 8: Cryptography

“Chishiki” is Japanese for “knowledge.” e-chishiki.com aims to bring software developers, information security professionals, IT executives and other IT pros a rich body of knowledge in the form of articles, interviews, tutorials and technical discussions. Our contributors are among the biggest names in the Indian IT industry and include noted authors, educators and practitioners.

Online Book Preview – Microsoft .NET Framework: Web Application Security

Chapter 8: Cryptography (Online Book Preview)

Microsoft .NET Framework: Web Application Security
Microsoft .NET Framework: Web Application Security

Email has become a way of life, and is one of the best forms of communication, for personal use or commercial purposes. But how can we be sure that the email messages we send will reach their destination without being intercepted and altered? Also, how do we ever know if our thoughts in these messages are being spied upon? If the data flowing through the Internet is in plain text, it is easily readable by all. If this is of concern to us, the best approach is to encrypt the data that is sent back and forth.

The following is an excerpt from Vijay Mukhi's upcoming book "Microsoft .NET Framework: Web Application Security." This book will be available for purchase from this site as an e-book in June, 2008.

Introduction

Email has become a way of life, and is one of the best forms of communication, for personal use or commercial purposes. But how can we be sure that the email messages we send will reach their destination without being intercepted and altered? Also, how do we ever know if our thoughts in these messages are being spied upon? If the data flowing through the Internet is in plain text, it is easily readable by all. If this is of concern to us, the best approach is to encrypt the data that is sent back and forth.

We should not only be considering data encryption for email messages alone. Users of computers generally store all data in plain text format on their desktop or notebook computers, ignorant of or oblivious to the fact that if the system is compromised, then anyone can access all the files on it. It is therefore advisable to store all confidential data in encrypted form. Banks encrypt all their data in online banking transactions. All e-commerce sites use some kind of encryption methods in their business transactions to safeguard data traveling over the Net.

It is a myth to believe that passwords stored in databases are safe and sound. Database servers, if compromised, can provide all the sensitive data stored in them to an attacker, or for that matter, SQL injection attacks can retrieve passwords from databases very easily. Even string parameters in a web.config file are unsafe, if they are not encrypted.

We believe that all programmers today need to implement code to conceal the original data. One aspect of cryptography is the concealment of original data using symmetric and asymmetric algorithms.

In this chapter, we will look at a few of these algorithms that can be implemented in our code using the .NET framework.

Let us examine one of the easiest forms of encryption.

Comments

Log in or create a user account to comment.

On Sale From April 2008

Let Us C
8th Ed.
C programming classic & best seller. 1 million+ copies sold!

Y. Kanetkar

On Sale From April 2008

Introduction to Object Oriented Programming & C++

Y. Kanetkar

On Sale From June 2008

Microsoft .NET Framework: Web Application Security

Vijay Mukhi

On Sale From June 2008

Quest C++ Courseware
20 hours of instructional video and slides.

Y. Kanetkar Asang Dani

On Sale From June 2008

A Programmer's Guide to Web Application Security

Vijay Mukhi

Latest Forum Posts