Well established needs for secure communication


Algorithms in which the key for encryption and decryption are the same are Symmetric


Download 42 Kb.
bet2/13
Sana02.06.2024
Hajmi42 Kb.
#1840276
1   2   3   4   5   6   7   8   9   ...   13
Bog'liq
9-crypt

Algorithms in which the key for encryption and decryption are the same are Symmetric

  • Algorithms in which the key for encryption and decryption are the same are Symmetric
    • Example: Caesar Cipher
  • Types:
    • Block Ciphers
    • Stream Ciphers
      • Encrypt data one bit or one byte at a time
      • Used if data is a constant stream of information

Strength of algorithm is determined by the size of the key

  • Strength of algorithm is determined by the size of the key
  • Key length is expressed in bits
    • Typical key sizes vary between 48 bits and 448 bits
  • Set of possible keys for a cipher is called key space
    • For 40-bit key there are 240 possible keys
    • For 128-bit key there are 2128 possible keys
    • Each additional bit added to the key length doubles the security
  • To crack the key the hacker has to use brute-force
    • (i.e. try all the possible keys till a key that works is found)
    • Super Computer can crack a 56-bit key in 24 hours
    • It will take 272 times longer to crack a 128-bit key
    • (Longer than the age of the universe)
  • Symmetric Encryption Key Strength

Caesar Cipher is a method in which each letter in the alphabet is rotated by three letters as shown

  • Caesar Cipher is a method in which each letter in the alphabet is rotated by three letters as shown
  • Substitution Ciphers Caesar Cipher
  • 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
  • D E F G H I J K L M N O P Q R S T U V W X Y Z A B C
  • Let us try to encrypt the message
    • Attack at Dawn
  • Assignment: Each student will exchange a secret message with his/her closest neighbor about some other person in the class and the neighbor will decipher it.
  • Substitution Ciphers Caesar Cipher
  • Encryption
  • Plain Text
  • Message:
  • Attack at Dawn
  • Cipher Text
  • Message:
  • Dwwdfn Dw Gdyq
  • Cipher:
  • Caesar Cipher
  • Algorithm
  • Key (3)
  • Decryption
  • Plain Text
  • Message:
  • Attack at Dawn
  • Cipher Text
  • Message:
  • Dwwdfn Dw Gdyq
  • Cipher:
  • Caesar Cipher
  • Algorithm
  • Key (3)
  • How many different keys are possible?

Download 42 Kb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   ...   13




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling