Documente Academic
Documente Profesional
Documente Cultură
Cryptography Concepts
Encryption Algorithms
Cryptography Concepts
• Symmetric Encryption
• (secret-key, shared-key, and private-key) uses the same
key for encryption as it does for decryption.
• Asymmetric Encryption
• (public key) uses different encryption keys for encryption
and decryption. These keys are known as public and
private keys.
Types of cryptography
Alice’s Bob’s
K encryption K decryption
A
key B key
• Symmetric Encryption
Types of cryptography
• Symmetric Encryption
KA-B KA-B
• Symmetric Encryption
• Requirements
• two requirements for secure use of symmetric
encryption:
• a strong encryption algorithm
• a secret key known only to sender / receiver
Y = EK(X)
X = DK(Y)
• assume encryption algorithm is known
• implies a secure channel to distribute key
Classical encryption
• Secret-key cryptography
• Also called symmetric or conventional cryptography
• Five ingredients
• Plaintext
• Encryption algorithm: runs on the plaintext and the encryption key to yield the ciphertext
• Secret key: an input to the encryption algorithm, value independent of the plaintext;
different keys will yield different outputs
• Ciphertext: the scrambled text produced as an output by the encryption algorithm
• Decryption algorithm: runs on the ciphertext and the key to produce the plaintext
• Encryption
• Read one letter t from the plaintext and one letter k from the key-word
• t is encrypted according to the Caesar cipher with key k
• for the next plain-letter, use the next letter from the key-word
• When the key word is finished, start the reading of the key from the beginning
• In other words: ci=(pi+ki mod m) mod 26
• Decryption works in reverse
• Example: key is “bcde”; “testing” is encrypted as “ugvxjpj”
• Note that the two ‘t’ are encrypted by different letters: ‘u’ and ‘x’
• The two ‘j’ in the cryptotext come from different plain letters: ‘i’ and ‘j’
Vigenère Cipher
https://pages.mtu.edu/~shene/NSF-4/Tutorial/VIG/Vig-Base.html
Vigenère Cipher
https://pages.mtu.edu/~shene/NSF-4/Tutorial/VIG/Vig-Base.html