Crptography PPT-2
Crptography PPT-2
Crptography PPT-2
WHAT IS CRYPTOGRAPHY ?
Cryptography means “secret writing”.
CRYPTOGRAPH
Y
SYMMETRIC ASYMETRIC
KEY KEY
Symmetric Key Cryptography
Asymetric Key (Public key Cryptography
Symmetric Key Cryptography
Simple modern Ciphers
XOR cipher
Rotation Cipher
S box
P Box
XOR Cipher
Size of plain text, key and cipher text are
same
Rotation Cipher
Input bits are rotated to left/right
Keyed/keyless
In keyed rotation, value of key defines
number of rotations
In keyless, the no. of rotations is fixed.
Rotation Cipher (contd..)
If length of original stream is N, after N
rotations, we get original input stream.
2. Bob Computes n= p × q
In the past when data exchange was between two specific person it was
possible to personally exchange the secret keys
A session key is one that is used only for the duration of one session
Confidentiality with Asymmetric-Key
Cryptography
there is no key sharing; there is a public announcement
that is a person creates two keys: one private and one public
The public key is used only for encryption; the private key is
used only for decryption
The public key locks the message; the private key unlocks it.
Message Integrity
The data must arrive at the receiver exactly as
they were sent
If Alice can create two messages that hash to the same digest, she can
deny sending the first to Bob and claim that she sent only the second.