Cryptography
Jay M Joshi
Assistant Prof.
Department of Electronics & Telecomm.
Shri S’ad Vidya Mandal Inst. Of Tech.,
Bharuch-392 001
Why Information Security ?
- Traditionally security was provided by physical & administrative means
- Spread of IT requires automated tools to protect files and other stored information
- both stored and processed within a computer
- and transferred between computers
Jay M Joshi
The Need for Security
and administrative means
Jay M Joshi
Jay M Joshi
Information Systems
Jay M Joshi
Information Systems
- Maintaining the proper balance
What makes Cyber crime easy
Jay M Joshi
What makes Cyber crime easy
Jay M Joshi
Definitions
Jay M Joshi
Jay M Joshi
Message security including cryptography
Goals of Security
Jay M Joshi
Goals of Security
Jay M Joshi
Jay M Joshi
Security Services in Conventional Transactions
Jay M Joshi
Security Services in Conventional Transactions
signatures, receipts
Electronic Security Services �and Mechanisms
Jay M Joshi
A Classification of Attacks
Jay M Joshi
Interruption
Jay M Joshi
Source
Destination
Interception
Jay M Joshi
Source
Destination
keystroke logging
personal information about entities
Modification
Jay M Joshi
Source
Destination
Fabrication
Jay M Joshi
Source
Destination
Active and passive attacks
- Active attacks where in the information is modified or false information is created
- Passive attacks where in the information is only accessed and analyzed
Jay M Joshi
Jay M Joshi
2
Basic Model of Cryptography
Few Concepts
Jay M Joshi
Cryptography
Jay M Joshi
Classification
Jay M Joshi
Jay M Joshi
Privacy using symmetric-key encryption
Jay M Joshi
Privacy using public-key encryption
Symmetric key encryption : Cipher Types
Jay M Joshi
block ciphers
block
cipher
plaintext
ciphertext
key
padding
pseudo-random
bit stream generator
+
...
...
plaintext
ciphertext
stream ciphers
seed
Secret Key Cryptography Algorithms
Jay M Joshi
History of Cryptography
Substitution Ciphers
Jay M Joshi
Mono-alphabetic Substitution
Plaintext:
a b c d e f g h I j k l m n o p q r s t u v w x y z
Ciphertext:
QWERTYUIOPASDFGHJKLZXCVBNM
Jay M Joshi
Jay M Joshi
Cryptanalyst Mono-alphabetic Substitution
Cryptanalyst Mono-alphabetic Substitution
CTBMN BYCTC BTJDS QXBNS GSTJC BTSWX CTQTZ CQVUJ QJSGS TJQZZ MNQJS VLNSX VNZUJ JDSTS JQUUS JUBXJ
Common word is financial – repeated character i-4diff, n-1diff, a-3diff
Jay M Joshi
Cryptanalyst Mono-alphabetic Substitution
Jay M Joshi
Poly-alphabetic Substitution
Jay M Joshi
Poly-alphabetic Substitution
Jay M Joshi
Poly-alphabetic Substitution
Jay M Joshi
Poly-alphabetic Substitution
The message "Wish you were here" can be encrypted by the three possible methods, using SIAMESE as the keyword:
Straight keyword:
Message: WISHYOUWEREHERE
Key: SIAMESESIAMESES
Cipher: OQSTCGYOMRQLWVW
Progressive key:
Message: WISHYOUWEREHERE
Key: SIAMESETJBNFTFU
Cipher: OQSTCGYPNSRMXWY
Autokey:
Message: WISHYOUWEREHERE
Key: SIAMESEWISHYOUW
Cipher: OQSTCGYSMJLFSLA
Jay M Joshi
Transposition cipher
Plaintext :pleasetransferonelakhsinmyswissbankaccounttwotwooneoneone
M E G A B U C K
7 4 5 1 2 8 3 6
p l e a s e t r
a n s f e r o n
e l a k h s i n
m y s w i s s b
a n k a c c o u
n t t w o t w o
o n e o n e o n
e
Ciphertext: AFKWAWOSEHICONTOISOWOLNLYNTNESASKTERNNBUONPAEMANOE
Jay M Joshi
Mobile keypad substitution
Jay M Joshi
One time pads
Jay M Joshi
Disadvantage of one time pads
Jay M Joshi
Design of Cryptography
Jay M Joshi
Basic element of ciphers
Jay M Joshi
P-box
3-8 decoder
8-3 encoder
S-box
Permutation
Substitution
Product cipher
Jay M Joshi
P1
P2
P3
P4
S1
S2
S3
S4
S5
S6
S7
S8
S9
S10
S11
S12
Modes of block cipher
Issues
ECB- Electronic Codebook
CBC- Cipher Block Chaining
CFB-Cipher Feedback Mode
OFB- Output Feedback Mode
CTR- Counter Mode
Summary
Digital Signature
Jay M Joshi
Message Digest
Jay M Joshi
Usage of digests
Jay M Joshi
Common Digest functions
Jay M Joshi
Email Security
Jay M Joshi
Jay M Joshi
MD5-Hash function
RSA algorithm for public key
PGP
PGP (Cont.)
Jay M Joshi
Privacy-Enhanced E-mail
62
Cryptography and Digital certificates
63
Digital Certificates
64
Elements of Digital Cert.
All copyrights reserved by C.C. Cheung 2003.
65
Certification Authority (CA)
66
CA model (Trust model)
67
Public Key Infrastructure (PKI)
68
PKI Structure
69
4 key services
70
Certificate Signers
CSC1720 – Introduction to Internet
All copyrights reserved by C.C. Cheung 2003.
71
Steganography and watermarking
Jay M Joshi