From 85b10de8aed5e5c18a01394af984543bc0fa45db Mon Sep 17 00:00:00 2001 From: Bill Buchanan Date: Mon, 1 Mar 2021 18:24:53 +0000 Subject: [PATCH] Update mock_02.md --- z_assessments/test01/mock_02.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/z_assessments/test01/mock_02.md b/z_assessments/test01/mock_02.md index 4287fc7..cdb4aed 100644 --- a/z_assessments/test01/mock_02.md +++ b/z_assessments/test01/mock_02.md @@ -3,52 +3,52 @@ # Assessments The test will have short answer/essay questions. Here is a tutorial for the test and to test your knowledge an MCQ test is [here]. Make sure you can complete the following test examples. Any questions, ask Bill? -Q1. Diffie-Hellman +## Q1. Diffie-Hellman 1. If G=857, N=1831, x=5, and y=20. What is the shared key? -Q2. Key Entropy +## Q2. Key Entropy 2. If we have a 64-bit key, but only use 1000 phrases. What is the key entropy? -Q3. Key Cracking +## Q3. Key Cracking 3. If it takes 1ns to test an encryption key. How long will it take to crack a 32-bit key? -Q4. Public key +## Q4. Public key 4. Outline how Bob uses one of Alice's key to send her a secret message. -Q5. Public key generation +## Q5. Public key generation 5. With RSA, Bob selects two prime numbers of: p=5, q=11. What are the encryption and decryption keys? For a message of 4, prove that the decrypted value is the same of the message. -Q6. Encoding +## Q6. Encoding 6. What is the Base-64 encoding for "help"? -Q7. Salting +## Q7. Salting 7. On a Linux system, which tools can be used to crack the hashed password, and how are they used? -Answers -Q1 +# Answers +## Q1 A=(857^5) mod 1831 = 1135 B=(857^20) mod 1831 = 1213 Key = 1213^5 mod 1831 = 1626 -Q2 +## Q2 Key entropy = log (phases) / log (2) >Key entropy = log (1000) / log (2) = 9.97 bits -Q.3. +## Q.3. Max time to crack = 1e-9 x 2^32 Max time to crack = 4.3 seconds -Q.5. +## Q.5. N=p x q = 5 x 11 = 55 @@ -64,7 +64,7 @@ Message = 4 Encrypt: Cipher = 4^3 mod 55 = 9 Decrypt: Decoded = 9^27 mod 55 = 4 -Q6. +## Q6. help -> 01101000 01100101 01101100 01110000 help -> 011101 000110 010101 110011 011101 00