IANSunit 1 Cryptography 2
IANSunit 1 Cryptography 2
Introduction
• In Greek means secret writing
• Today referred as the science and art of
transforming messages to make them secure
and immune to attacks
Basic Terminology
• plaintext - the original message
• ciphertext - the coded message
• cipher - algorithm for transforming plaintext to ciphertext
• key - info used in cipher known only to sender/receiver
• encipher (encrypt) - converting plaintext to ciphertext
• decipher (decrypt) - recovering ciphertext from plaintext
• cryptography - study of encryption principles/methods
• cryptanalysis (codebreaking) - the study of principles/ methods
of deciphering ciphertext without knowing key
• cryptology - the field of both cryptography and cryptanalysis
Plain Text and Cipher Text
• Plain Text: Language that can be easily
understood
Cryptography techniques
Transforming a plain text
message into cipher text
Plain Text and Cipher Text
Hi Amit, Kl Dplw,
Hope you are doing fine. How about Krsh brx duh grlqj ilqh. Krz derxw
meeting at the train station this Friday phhwlqj dw wkh wudlq vwdwlrq wklv
at 5 pm? Please let me know if it is ok Iulgdb dw 5 sp? Sohdvh ohw ph nqrz
with you. li lw lv rn zlwk brx.
Regards. Uhjdugv.
Atul Dwxo
16
DES has
2 transposition blocks
one swapping block
16 complex blocks called the iteration blocks
General scheme of DES
Each iteration
uses a different
key derived
form original
key
Iteration block
Triple DES
The DES cipher uses the same concept
as the Caesar cipher, but the
encryption/decryption algorithm is
much more complex due to the sixteen
48-bit keys derived from a 56-bit key.
Public Key Cryptography
• Two keys
• Public and private key
• Public key is announced to the public
Advantages
• Removes the restriction of a shared symmetric
key between two entities
• Number of keys needed is reduced
• For 10 users require 20 keys
F F 6 41 4177 F B
A
6 5 Result modulo 119
Result modulo 119 6 F
= 41