NSP Exam Syllabus for Cryptography
NSP Exam Syllabus for Cryptography
MD5 provides data integrity by producing a 128-bit hash value from a given input. It's used to ensure data has not been altered. However, its vulnerability lies in its susceptibility to collision attacks, where two different inputs can produce the same hash output, undermining its reliability for data verification. These weaknesses make MD5 inadequate for applications requiring high security .
Euler’s Totient Function, denoted as φ(n), is crucial in RSA encryption, as it helps in determining the totient needed to calculate the private key. Given two primes p and q, the product n = pq, and φ(n) is calculated as (p-1)(q-1). This calculation is crucial because it determines how often numbers can be picked such that they are coprime to n, facilitating the selection of encryption keys e and the decryption keys d in RSA .
The Alert Protocol in TLS improves security by allowing the communication between client and server to include alerts related to potential problems during the session. Alerts may indicate warning or fatal errors. A fatal error leads to the termination of the connection, while warning alerts may or may not interrupt it. This protocol helps in maintaining secure connections by notifying each party to take necessary actions when issues arise, thus increasing the robustness of the security measure implemented in TLS .
The advantages of using Output Feedback Mode (OFB) include its ability to turn a block cipher into a synchronous stream cipher, implying it can encrypt data of any length and does not propagate errors beyond the immediate block. However, OFB also has disadvantages, such as the potential for repetitive keystream if the initialization vector (IV) is reused, which poses security risks because identical keystreams would encrypt different plaintexts to the same ciphertexts .
Monoalphabetic ciphers involve a single alphabet for the substitution of plaintext characters, such as the Caesar Cipher. It is more vulnerable to frequency analysis because each letter maps to a single other letter throughout. In contrast, polyalphabetic ciphers, like the Vigenère Cipher, use multiple alphabets to encrypt the plaintext, making frequency analysis more difficult as the same plaintext letter can encrypt to different ciphertext letters based on its position in the text .
Creating a digital signature using RSA involves generating a hash of the message, which is then encrypted with the sender's private key, producing a signature. This can be verified by decrypting the signature with the sender's public key, and if it matches the hash of the message, authenticity and integrity are confirmed. Digital signatures thus assure the recipient that the message was created by the owner of the private key and that it has not been altered .
The Diffie-Hellman key exchange algorithm allows two parties to securely exchange cryptographic keys over a public channel without prior shared secrets. It achieves this by enabling the creation of a shared secret between parties by each selecting private keys and using a common public base and a large prime number to derive a shared secret. The significance lies in its use for securely establishing session keys, which are essential for encrypted communication channels, especially in public and unsecured environments .
Computationally secure ciphers are those where breaking the cipher requires infeasible computational resources within a practical time frame, such as AES and RSA. These ciphers do not guarantee absolute security but rely on the limits of computational power to keep data safe. In contrast, unconditionally secure ciphers, like the One-Time Pad, provide absolute security against any potential computational attack, assuming the key is truly random, used only once, and as long as the message itself .
The Playfair Cipher fundamentally differs from traditional monoalphabetic ciphers by encrypting digraphs (pairs of letters), instead of single letters. This creates a more complex cipher text that is harder to break compared to simple substitution ciphers like Caesar Cipher, which only substitute one letter for another. Playfair employs a 5x5 grid using a keyword, making it more secure by introducing polygraphic substitution, thus preventing frequency analysis .
Attackers cannot recognize the actual sender of a message in encrypted tunnels because the data, including routing information, is encrypted, masking the source’s identity from unauthorized users. Encrypted tunnels utilize encryption and tunneling protocols (like IPSec) to secure the data being transmitted over networks by hiding source IP addresses and encapsulating data with encryption layers, rendering the original source non-traceable to potential attackers .