Unit 2.1
Unit 2.1
TO CRYPTOGRAPHY
J. KASIROORI
DEPARTMENT OF ANALYTICS AND
INFORMATICS
WHAT IS
CRYPTOGRAPHY
• The study of secure communication techniques that allow on the
sender and intended recipient of a message to view its contents
• Cryptography is the science of using mathematics to encrypt and
decrypt data.
• Cryptography is closed associated with encryption but is not the same
• Main Goal is to ensure security of communication over insecure
medium
TERMINOLOGY
• Plain text or cleartext – the message to be transmitted, usually in
human readable form
• Encryption – The process of disguising a message in a way to hide its
substance
• Ciphertext - scrambled message or the encrypted message
• Key - secret used in transformation
• Key Space – set of all valid, possible, distinct keys of a given
cryptosystem
• Cipher - an algorithm for performing encryption or decryption
TERMINOLOGY
• Cryptanalysis on the other hand is the
science of analyzing and breaking secure
communication
• Cryptology embraces both cryptography
and cryptanalysis
PILLARS OF CRYPTOGRAPHY
Message Hash
Hash function
HASH FUNCTION ALGORITHMS
• Message Digest 5 (MD5)
• Secure Hash Function (SHA) – The most popular
being SHA-512
• RACE Integrity Primitives Evaluation Message Digest
(RIPEMD)
• Whirlpool
USES OF HASH FUNCTIONS
• Password storage
• Message and data integrity checks
• Digital signatures
IN CLASS EXERCISES
1. Install the caesarcipher module in Python and use that module to:
i. Create cipher text for the string “HCF103 rocks, I love it tops”,
without stating an offset
ii. Do the same as in – using a shift (offset) of 4
iii. Using the Caesar Cipher manually (not the Python implementation)
encrypt a string of your choice.
iv. Using the cracked function of the caesarcipher decrypt the encrypted
string above
Thank you