Question 61
HardIn RSA with p = 3, q = 11 and public exponent e = 3, what is the private exponent d?
- A.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Computer Networks
In RSA with p = 3, q = 11 and public exponent e = 3, what is the private exponent d?
7
13
11
3
Sign up free to see the answer and a step-by-step explanation.
With RSA keys n = 33, e = 3, what is the ciphertext of the message 4?
4
64
12
31
Sign up free to see the answer and a step-by-step explanation.
With RSA keys n = 33, d = 7, what does the ciphertext 31 decrypt to?
7
31
4
13
Sign up free to see the answer and a step-by-step explanation.
In Diffie–Hellman with p = 23 and g = 5, Alice picks a = 6 and Bob picks b = 15. What is the shared secret?
19
2
8
5
Sign up free to see the answer and a step-by-step explanation.
Why is plain Diffie–Hellman vulnerable to a man-in-the-middle?
The exchanged values aren't authenticated, so an attacker can run separate exchanges with each side
It needs a CA
The numbers are too small
It uses symmetric keys
Sign up free to see the answer and a step-by-step explanation.
What does 'forward secrecy' in TLS mean?
Encryption is applied before compression
Stealing the server's long-term private key later does not reveal past session keys
Only forward packets are encrypted
Sessions last forever
Sign up free to see the answer and a step-by-step explanation.
A website stores passwords as SHA-256(password). Why is this weak?
SHA-256 is reversible
Fast unsalted hashes allow precomputed tables and quick guessing
It makes passwords too long
SHA-256 is encryption
Sign up free to see the answer and a step-by-step explanation.
What does a salt do in password hashing?
Shortens the hash
Encrypts the hash
Makes identical passwords hash differently, defeating precomputed tables
Speeds up hashing
Sign up free to see the answer and a step-by-step explanation.
Which attack does a CSRF token defend against?
SQL injection
A malicious site making a logged-in user's browser send unwanted requests
Brute-force login
DNS spoofing
Sign up free to see the answer and a step-by-step explanation.
A comment field displays users' input without escaping, and one user posts <script>…</script>. What attack is this?
Stored cross-site scripting (XSS)
CSRF
Clickjacking
SQL injection
Sign up free to see the answer and a step-by-step explanation.