Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
o o o o o
4/17/12
Symmetric Asymmetric
o o
INTRODUCTION
4/17/12
What is Cryptography?
Mainly used to
Goal
of Cryptography
communication over insecure
Ensure security of
medium
adversary
4/17/12
NEED OF ENCRYPTION
Confidentiality Integrity Authentication Nonrepudiation Access
Control Availability
4/17/12
TYPES OF ATTACKS
A A
Programs
4/17/12
PLAIN TEXT
PLAIN TEXT
ENCRYPT ION
DECRYPT ION
SENDE R
RECEIV ER
Basic Terminologies
Encryption
Encryption is the process of encoding a message so that its meaning is not obvious is the reverse process, transforming an encrypted message back into its normal, original form system for encryption and decryption is called a cryptosystem.
4/17/12
Decryption
Decryption
Cryptosystem
A
Basic Terminologies
Plaintext Cipher Key
4/17/12
text
key
refers to a sequence of symbols or a numerical value used by an algorithm to alter information & making that information secure
Encryption
The
algorithm
cryptosystem involves a set of rules for how to encrypt the plaintext and how to decrypt the cipher text. is an attempt to break the cipher text.
Cryptanalysis
Cryptanalysis
Techniques of Cryptography
q
4/17/12
Substitution Technique
Caesar Cipher Monoalphabetic Cipher Homophonic Cipher Polyalphabetic Cipher
Transposition Technique
Rail Fence Technique Vernam Cipher(One -time Pads) Simple Columnar Cipher
Encryption Algorithm
4/17/12
Symmetric
Same Key
distribution problem
Asymmetric
Key
Public
Symmetric Algorithm
It
Single
4/17/12
key used for both encrypt & decrypt Key must be known to both the parties
Key Plaintext
Encrypti on
Ciphertex t
Decrypt ion
Original Plaintext
Symmetric Cryptosystem
Asymmetric Algorithm
Private
4/17/12
keys are used for decrypting. Public keys are used for encrypting
plaintext encryption public key ciphertext decryption private key plaintext ciphertext
Comparison
Secret Key (Symmetric) Number of Key Protection of Key 1 Must be kept secret Public Key (Asymmetric) 2 One key must be kept secret & other can be freely exposed Key exchange, authentication Safer Slow; typically, 10,000 times slower than secret key
4/17/12
Best Uses
Symmetric Algorithm
Data
4/17/12
56 bits key
Advance
4/17/12
Standard It is also known as Data Encryption Algorithm The DES algorithm is a careful and complex combination of two fundamental building blocks of encryption: Substitution and Transposition DES uses only standard arithmetic and logical operations on numbers up to 64 bits long
Plain text (64 bits) Initial Permutation (IP) LPT key RPT key
4/17/12
16 rounds 16 rounds Final Permutation Cipher text (64 bits) BROAD LEVEL STEPS IN DES
4/17/12
64 bit plain text is handed over to initial permutation function. IP is performed over the plain text. IP produces two halves of the permuted blocks left plain text (LPT) & right plain text (RPT). Now LPT & RPT goes 16 rounds of encryption process, each with its own key. Now LPT & RPT are rejoined and FINAL PERMUTATION (FP) is performed on the combined block.
4/17/12
ADVANTAGES OF DES:
o
4/17/12
DES is also an ANSI and ISO standard anybody can learn the details and implement it. Since DES was designed to run on hardware, it is fast in hardware. Hard to crack.
DISADVANTAGES OF DES:
o
Hardware implementations of DES are very fast; DES was not designed for software and hence runs relatively slowly.
Asymmetric Algorithm
Rivest
4/17/12
Algorithm:
If M1,M2., Mn are given values & S is the sum, S=b1M1+b2M2.+bnMn where, bi can be 0 or 1
RSA
It
4/17/12
is named after its three inventors Rivest Shamir and Adleman This algorithm was introduced in 1978 and to date remains secure. RSA has been the subject of extensive cryptanalysis, and no serious flaws have yet been found. The encryption algorithm is based on the underlying problem of factoring large numbers.
RSA
p n
4/17/12
m a b
4/17/12
M < n. Encryption key = (a , n). Decryption key = (b , n). Encrypt => E = Ma mod n. Decrypt => M = Eb mod n.
4/17/12
Advantage
Individuals can post their public key on their Web site. The number of the keys is only twice of the number of user.
Disadvantage It is slower
than symmetric algorithms. The cipher text may be larger than plain text.
4/17/12
Digital signature
When
an author signs a document, it cannot be changed. you send a document electronically, you can also sign it. ways:
When
Digital
You can sign the whole document You can sign a digest of the document
4/17/12
You
can not provide these aspects of security using the secret key. The method provides authentication & nonrepudiation.
4/17/12
The
Message
the digest can only be created from the message, but not vice versa One-to-one: be very difficult to find two messages that create the same digest.
4/17/12
Sender site
4/17/12
Receiver site
APPLICATIONS OF ENCRYPTION
Cryptographic Digital
4/17/12
Hash Function
Signature
4/17/12
CONCLUSION
RSA
finds its strongest application when parties who have no prior relationship want to share sensitive data with each other. Thus , even though slower as compared to symmetric algorithms it is & will be widely used as it can be used in digital signature for long haul transmission.
4/17/12
THANK YOU