Which of the following is a hash function and not an encryption algorithm?
- A.AES
- B.DES
- C.MD5
- D.Blowfish
Correct answer
Explanation
The correct answer is C, MD5. The Message Digest 5 algorithm takes an input of any length and returns a 128-bit digest. It uses no key, and the process cannot be reversed to recover the input, which is exactly why it is a hash and not a cipher; hashes are used to check that a file or password has not been altered. Options A, B and D are all symmetric block ciphers that encrypt and decrypt with a shared key. AES, chosen in 2001 from the Rijndael design, works on 128-bit blocks with keys of 128, 192 or 256 bits. DES, from the 1970s, used a 56-bit key on 64-bit blocks and is now considered breakable. Blowfish is another block cipher of the same family. The other names in the hash family worth remembering are SHA-1, which gives 160 bits, and SHA-256, which gives 256 bits and is used in blockchains.
Read the full article: Encryption, Digital Signatures and SSL/HTTPS for Exams
Practice Questions
View allSymmetric encryption is also known as:
- A.public-key encryption
- B.asymmetric encryption
- C.conventional encryption
- D.hybrid encryption
Show answer
Symmetric encryption uses one shared secret key for both locking and unlocking data, and because it is the older and simpler of the two families it is variously called conventional, secret key or private key encryption.
Read the full explanation →In symmetric encryption, how many keys are used to encrypt and decrypt data?
- A.Two keys
- B.One key
- C.No key
- D.Three keys
Show answer
The defining feature of symmetric encryption is that a single shared secret key performs both operations: the sender encrypts the plaintext with it and the receiver decrypts the ciphertext with the very same key.
Read the full explanation →What is the full form of SSL, the protocol whose successor secures websites today?
- A.Secure Socket Line
- B.Secure Sockets Layer
- C.System Security Layer
- D.Secure Server Link
Show answer
SSL was developed by Netscape in the mid-1990s to encrypt the traffic between a web browser and a web server, and its successor, Transport Layer Security or TLS, standardised from 1999, is what actually protects websites now; the older name survives in common speech and in the phrase SSL certificate.
Read the full explanation →HTTPS, the secure form of web browsing, uses which default port number?
- A.21
- B.25
- C.80
- D.443
Show answer
HTTPS is HTTP carried inside an SSL or TLS tunnel, and the port reserved for it is 443, which is why a padlock appears in the address bar when a site is reached on that port with a valid certificate.
Read the full explanation →The RSA algorithm, published in 1977, is an example of which kind of cryptography?
- A.Symmetric key cryptography
- B.Public key cryptography
- C.Hashing
- D.Steganography
Show answer
RSA, named after Rivest, Shamir and Adleman, works with a linked pair of keys and takes its security from the difficulty of factorising the product of two large prime numbers; it is used both to exchange keys and to create digital signatures.
Read the full explanation →