Skills101
← All practice quizzes

Quiz: Cryptography Basics

5 questions · new set on every retakeNo time limitPass: 60%+10 XP on first pass

Know which tool to use and why. Compare encoding, hashing, encryption and signatures, understand symmetric and public-key encryption, work through RSA and Diffie–Hellman with small numbers, and generate secure random tokens.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    A developer says "the user's phone number is safe because we store it in Base64". What is wrong?

  2. Question 2

    Which tool keeps data secret but lets the owner of the key read it back?

  3. Question 3

    In symmetric encryption, which statement is true?

  4. Question 4

    What does this print?

    p, q, e = 5, 11, 3
    n, phi = p * q, (p - 1) * (q - 1)
    d = pow(e, -1, phi)
    print(n, phi, d)
    
  5. Question 5

    Why is RSA hard to break when real keys are used?

🎯 Today’s placement challenge — 10 questions, no login. Can you score 10/10?Take today’s challenge →