Interview questions
Cryptographer interview questions: 66 to prepare for
Each question says why it is likely to come up, from what today’s 76 open cryptographer postings ask for, and what a good answer shows. Prepare a real example for each, then practise it with the interview answer builder.
- questions to prepare
- 66
- open cryptographer jobs today
- 76
- postings read in full
- 22
- median advertised pay
- $178K
Practise out loudThe page reads each question aloud and checks your answer. This site keeps nothing.
Questions
Questions about the skills cryptographer postings name
Walk me through a recent project where you used Cryptography. What did you do yourself?
75% of today’s 76 open cryptographer postings name Cryptography.
A good answer shows: Your own hands-on part, the choices you made and a number for the result.
Sample answer: “On my last project I used Cryptography every day for about 3 months. My own part was one piece from start to finish: I planned it, did the work and checked the result against the old way of working. It saved the team about 4 hours a week.” Then say what you would do differently.
What is a mistake people often make with PKI, and how do you avoid it?
67% of today’s 76 open cryptographer postings name PKI.
A good answer shows: That you have used it long enough to know where it goes wrong.
Sample answer: “The mistake I see most with PKI is copying what worked somewhere else without checking that it fits the case in front of you. I try it on a small example first and write down what I expect before I look at the result. On my last team that habit cut the rework from about 10 cases a month to 2.” Name a mistake you have really seen.
How would you explain Security clearance to someone who has never used it?
37% of today’s 76 open cryptographer postings name Security clearance.
A good answer shows: That you understand it well enough to make it simple.
Sample answer: “I would leave the terms out and say in one sentence what Security clearance is for. Then I would show one small example from my own work and let the person try it. I taught 3 new colleagues this way, and each did a first task alone within 2 weeks.” Use an example the listener already knows.
Tell me about a problem with Python that took you a long time to solve.
36% of today’s 76 open cryptographer postings name Python.
A good answer shows: How you narrowed the problem down, and what you would do faster next time.
Sample answer: “One problem with Python kept coming back for about 3 weeks, because it showed up only now and then. I wrote down every case, changed one thing at a time and found the cause in the one step all the cases shared. Next time I would start that list on day one and ask a colleague after 2 days, not 2 weeks.” End with what you changed so that it does not come back.
Technical cryptographer interview questions and answers
What does len([4, 8, 15]) return?
A Python question (36% of today’s postings name Python). More in the Python skill test.
Answer: 3. len counts the items in a list: there are three.
What is the difference between a list and a tuple?
A Python question.
Answer: A list can be changed after it is made, a tuple cannot. Lists are mutable (changeable); tuples are immutable.
What does a list comprehension such as [x * 2 for x in nums] do?
A Python question.
Answer: Builds a new list with every item doubled. It is a short way to write a loop that builds a new list. The original list is not changed.
What is the result of "7" + "3"?
A Python question.
Answer: "73". Adding two strings joins them. To add the numbers, convert them first with int().
Which statement catches an error so the program can carry on?
A Python question.
Answer: try / except. Code that may fail goes in try; the except block says what to do when it does.
For word = "python", what does word[1:4] return?
A Python question.
Answer: "yth". A slice starts at the first index and stops just before the second, and counting starts at 0. word[-1] is the last letter and word[::-1] reverses the string.
In a class, what is __init__ for?
A Python question.
Answer: It sets up each new object, such as its starting attributes. Car("red") calls __init__ with self set to the new car. self is the object itself, so self.color = color stores the color on that car.
a = {1, 2, 3} and b = {2, 3, 4}. What is a & b?
A Python question.
Answer: {2, 3}. & keeps what is in both sets, | joins them and - keeps what is only in the first. Checking whether a value is in a set is also much faster than searching a long list.
people is a list of dictionaries with an "age" key. What does sorted(people, key=lambda p: p["age"]) do?
A Python question.
Answer: Returns a new list of the same people, youngest first. key tells sorted what to compare for each item; add reverse=True for oldest first. sorted returns a new list, while people.sort(key=...) changes the list itself and returns None.
What does class Manager(Employee): mean?
A Python question.
Answer: Manager inherits everything Employee has and can add to it or change it. This is inheritance: a Manager is an Employee with extras. super().__init__(...) runs the parent’s set-up from inside the child.
a = [[1, 2], [3, 4]] and b = a.copy(). After b[0].append(9), what is a?
A Python question.
Answer: [[1, 2, 9], [3, 4]]. copy() makes a new outer list but shares the inner lists, so a change inside one shows in both. copy.deepcopy copies the inner lists too, while plain b = a copies nothing at all.
What does a decorator such as @functools.lru_cache, written above a function, do?
A Python question.
Answer: Wraps the function to add behavior; lru_cache remembers past results. A decorator is a function that takes a function and returns a new one. Common uses are caching, logging, timing and checking access.
Which command shows the folder you are in?
A Linux question (20% of today’s postings name Linux). More in the Linux skill test.
Answer: pwd. pwd means print working directory.
Which command finds the lines of a file that contain the word error?
A Linux question.
Answer: grep error file.log. grep searches inside files. find searches for files by name or property.
Which command shows running processes and how much memory and CPU they use, updating live?
A Linux question.
Answer: top. top refreshes every few seconds. df shows disk space.
Which command counts the lines in access.log that contain 404?
A Linux question.
Answer: grep 404 access.log | wc -l. grep picks the matching lines and wc -l counts them; grep -c 404 access.log does both in one step. Add -i to ignore case and -r to search a whole folder.
Which command shows how much free space each disk has, in readable units?
A Linux question.
Answer: df -h. df reports space per disk (file system), and -h shows GB and MB instead of blocks. free -h shows memory, not disk.
A program will not stop. Why try plain kill PID before kill -9 PID?
A Linux question.
Answer: Plain kill lets it shut down cleanly; kill -9 ends it at once. kill sends SIGTERM, which a program can catch to shut down cleanly. SIGKILL (-9) cannot be caught, so half-written files and lock files can be left behind.
The disk is nearly full. Which command shows which folders in /var take the most space?
A Linux question.
Answer: du -sh /var/* | sort -h. du adds up the size of each folder (-s for one total each, -h for readable units) and sort -h puts them in size order. df tells you a disk is full; du tells you what filled it.
df says the disk is full, but du finds far less data. What is a common cause?
A Linux question.
Answer: A deleted file is still held open by a running program. Space comes back only when the last program closes the file, which often happens with a log that was deleted instead of emptied. lsof +L1 lists such files, and restarting the program frees the space.
Cryptographer questions and answers
Why should a product team not design its own encryption scheme, even if its engineers are strong?
What it checks: whether you know why vetted algorithms and libraries matter.
A good answer shows: Crypto fails silently and subtly, trust comes from years of public analysis, so products use standard algorithms through reviewed, high-level libraries.
Sample answer: Custom crypto usually passes every test, because a broken scheme still encrypts and decrypts. The flaws show up only when someone attacks it. Standard algorithms have had years of public analysis. So I steer teams to a well-reviewed library with a high-level API, like libsodium or the platform's crypto library, and keep our own code to choosing settings and handling keys.
What goes wrong if a nonce is reused with AES-GCM under the same key?
What it checks: whether you understand the real consequence of nonce reuse.
A good answer shows: Keystream reuse leaks the XOR of plaintexts and lets an attacker recover the authentication key and forge messages; prevented by design, not hope.
Sample answer: Reusing a nonce with the same key reuses the keystream, so the XOR of the two plaintexts leaks. Worse, an attacker can recover the authentication key and forge messages. To prevent it I use a counter that cannot repeat, or random nonces kept well under the safe message limit per key, and rotate keys. Where nonces are hard to manage, I consider a misuse-resistant mode like AES-GCM-SIV.
What does constant-time code mean, and why does it matter?
What it checks: whether you understand timing side channels.
A good answer shows: Time and memory access must not depend on secrets: no secret-based branches, table lookups or early-exit compares, checked with tools and review.
Sample answer: It means the time and memory access pattern do not depend on secret values. A classic bug is checking a MAC with a normal compare that stops at the first wrong byte, so timing shows how many bytes matched. I use a constant-time compare, avoid branches and table lookups indexed by secrets, and test sensitive code for timing leaks, since compilers can undo careful source code.
In general terms, how should an organization prepare for post-quantum cryptography?
What it checks: whether you can describe a sensible migration without hype.
A good answer shows: Inventories public-key crypto use, puts long-lived secrets first, follows NIST standards like ML-KEM and ML-DSA, considers hybrids, and builds agility.
Sample answer: Start with an inventory of where public-key crypto is used: TLS, VPNs, code signing, stored data. Data that must stay secret for many years matters most, because it can be recorded now and decrypted later. NIST has standardized ML-KEM for key exchange and ML-DSA for signatures. Many teams start with hybrid key exchange next to the current one, and make algorithms easy to swap.
In a code review you find a service encrypting stored customer data with AES in ECB mode. What do you do?
What it checks: how you handle a real crypto flaw in a product.
A good answer shows: Explains the risk plainly, moves to an authenticated mode through a standard library, plans re-encryption of existing data, and looks for other uses.
Sample answer: ECB encrypts identical blocks the same way, so patterns leak, and it has no integrity check. I explain that to the team with a short example, not a lecture. Then I propose AES-GCM or a library's sealed box API, plus a migration: decrypt old records and re-encrypt them with a version tag. I also search the codebase for other ECB uses, and found two more the last time.
A developer wants to store user passwords encrypted so support can read them back. How do you respond?
What it checks: whether you know passwords should be hashed with a slow function, not encrypted.
A good answer shows: A clear no, hashing with Argon2id, scrypt, bcrypt or PBKDF2 and unique salts, and a reset flow so support never needs the password.
Sample answer: I say we should never be able to read a password back. If the database leaks along with the key, every password is exposed, and people reuse them. We store a hash from a slow function like Argon2id or bcrypt with a unique salt. Support gets a reset flow instead. When I explained this once, the real need turned out to be account recovery, which the reset link covered.
A team finds that a signing private key was pushed to a public code repository an hour ago. What do you do?
What it checks: how you respond to key exposure.
A good answer shows: Treats the key as compromised: revoke and rotate, clean history, check for misuse, follow the incident process and add secret scanning.
Sample answer: I treat the key as compromised, even after one hour, because public repositories are scanned all the time. We revoke it, issue a new key and update everything that trusts the old one. Deleting the commit is not enough, so we clean history and ask the host to purge caches. Then we check for anything signed with it, follow the incident process and turn on secret scanning.
A product manager asks you to approve a vendor that promises "military-grade, unbreakable encryption." How do you evaluate it?
What it checks: whether you judge vendor crypto claims on evidence.
A good answer shows: Asks for algorithms, modes, libraries, key handling, independent audits or FIPS 140-3 validation if required, and treats marketing words as no evidence.
Sample answer: Those words tell me nothing, so I send the vendor specific questions: which algorithms and modes, which library, where keys are generated and stored, who can access them, and whether there is an independent audit or a FIPS 140-3 validation if we need one. Once a vendor answered that keys were stored in the same database as the data. That answer settled it.
A constant-time compare in your library shows a small timing difference after a compiler upgrade. How do you investigate?
What it checks: whether you know compilers can break side-channel protections.
A good answer shows: Reads the generated assembly, confirms with a statistical timing test, uses barriers or vetted primitives, and adds a regression check to CI.
Sample answer: I look at the generated assembly first, because a new compiler can turn careful branch-free code back into a branch. In one case it added an early exit to our compare loop. I confirmed the leak with a statistical timing test, then rewrote the function with a value barrier the optimizer cannot see through. That function now has a timing test and an assembly check in CI.
A team wants to encrypt data in a new service. How do you design the key management?
What it checks: whether you know keys matter as much as algorithms.
A good answer shows: Envelope encryption with a KMS or HSM, no keys in code, least-privilege access, rotation, logged key use, and tested recovery.
Sample answer: I usually use envelope encryption. A key in a managed KMS or HSM wraps data keys, and the service gets data keys only through an API with logged access. Keys never go in code or config files. Only the service role can use the key, rotation runs on a schedule, and we test restoring from backups. Most real failures I have seen were key handling mistakes, not broken algorithms.
Tell me about a time you explained a cryptographic risk to people without a math background.
What it checks: whether you can make risk clear to non-specialists.
A good answer shows: A plain demo or comparison, a focus on impact and the decision needed, little jargon, and a clear next step.
Sample answer: Leadership wanted to delay fixing a weak random number generator used for session tokens. Instead of explaining entropy, I showed a demo where I predicted the next token after seeing a few, in under a minute. Then I explained what an attacker could do with it and what the fix cost, about two days of work. They approved the fix that afternoon.
Tell me about a time you found a flaw in a design you had approved earlier.
What it checks: whether you own mistakes in security-critical work.
A good answer shows: Raises it quickly, assesses the impact honestly, fixes it with a plan, and changes how reviews are done.
Sample answer: I had approved a token design that used the same key for encryption and for signing. Months later, while reviewing something else, I saw that one use could help an attack on the other. I told the team that day, wrote up the real risk, which was low but not zero, and we split the keys in the next release. Key separation is now on my review checklist.
Tell me about a time you had to choose between a stronger security design and a deadline.
What it checks: how you balance security with delivery.
A good answer shows: Separates must-haves from later work, makes the remaining risk explicit and written, and has the right owner accept it.
Sample answer: We were launching a file sharing feature with two weeks left, and full end-to-end encryption would have taken months. I listed what launch needed: encryption in transit and at rest with managed keys, access logging, and short-lived links. End-to-end went on the roadmap. The product owner signed off on the remaining risk in writing, and we shipped on time.
Tell me about a time you reviewed someone else's protocol and found a problem.
What it checks: how you review carefully and give useful feedback.
A good answer shows: Checks the assumptions, shows a concrete attack or counterexample, and gives respectful, actionable feedback with a fix.
Sample answer: A partner team sent a protocol for pairing devices. Walking through the messages, I saw one value was not covered by the signature, so an attacker in the middle could swap it. I wrote a short attack sketch with the exact messages and a suggested fix, signing the whole transcript. They agreed in one meeting, and the fix added only a few lines to their code.
Cloud and infrastructure questions and answers
How does a change get from a developer’s computer to the customers?
What it checks: whether you can explain the delivery path.
A good answer shows: The steps: review, automatic tests, build, release in stages, and a way back.
Sample answer: A change is reviewed, then tests and checks run on their own. The build is released to a small share of traffic first and watched; if the error rate rises it is rolled back automatically. A path with those steps lets people release many times a day without fear.
The site is slow and customers are complaining. What do you do in the first ten minutes?
What it checks: order of work under pressure.
A good answer shows: Confirm and size the problem, look at what changed, reduce the harm first, then find the cause.
Sample answer: I check how many people are affected and since when, then ask what changed: a release, a setting, a spike in traffic. If a recent release is the likely cause I roll it back first, because restoring service comes before understanding it. I tell the team what I see as I go.
What is infrastructure as code, and why use it?
What it checks: whether you know what it solves.
A good answer shows: Servers and settings described in files, kept in version control, applied the same way each time.
Sample answer: Instead of clicking through a console, the servers, networks and settings are described in files that are reviewed and stored like any other code. A second environment is made from the same files, a change has an author and a date, and a mistake can be reverted.
What would you put in an alert, and what would you leave out?
What it checks: whether you care about the person who gets woken up.
A good answer shows: Alerts on what harms users and needs action now; the rest goes to a dashboard.
Sample answer: I alert on what customers feel, such as failed requests or slow responses, and only when a person has to act. A disk that is 70% full goes to a report, not to a phone at night. Every alert that wakes someone for nothing teaches the team to ignore the next one.
What is a container, and how is it different from a virtual machine?
What it checks: basics stated in plain words.
A good answer shows: A container shares the host’s operating system and starts quickly; a virtual machine carries its own.
Sample answer: A container packs a program with what it needs and runs on the host’s operating system, so it is small and starts in seconds. A virtual machine includes a whole operating system of its own, which isolates it more strongly but makes it heavier and slower to start.
How do you keep secrets such as passwords and keys out of code?
What it checks: security habits in daily work.
A good answer shows: A secrets store, access by role, rotation, and nothing in the repository.
Sample answer: Secrets live in a dedicated store and are handed to a service at start-up according to its role, never written into the code or the build logs. They are changed on a schedule and at once if one may have leaked, and the repository is scanned for any that slipped in.
How do you decide how much capacity to run, and how do you control cost?
What it checks: weighing reliability against money.
A good answer shows: Measure real use, keep a margin for peaks, add or remove capacity automatically, review the bill.
Sample answer: I look at real use over weeks and keep a margin above the peak. Capacity that grows and shrinks with traffic avoids paying for idle servers, and a monthly look at the bill by service finds the forgotten test environment that costs more than the product.
What do you do after an incident is over?
What it checks: a blameless habit of learning.
A good answer shows: A written timeline, the causes, and changes with owners and dates.
Sample answer: We write what happened and when, in plain terms, and ask which conditions let it happen rather than who made the mistake. The result is a short list of changes, each with an owner and a date, and we check later that they were done.
How do you plan for a failure of a whole data center or region?
What it checks: whether you plan for the case that is unlikely but costly.
A good answer shows: Backups that have been restored in a test, a second location, and a rehearsed plan.
Sample answer: Copies of the data are kept in another location, and I do not count a backup as real until a restore has been tried. For the most important services a second location can take over, and the team rehearses the switch so the plan is not read for the first time during an outage.
Tell me about an automation you built. Who used it and what did it save?
What it checks: whether you remove repeated work for others.
A good answer shows: A real problem, a simple solution, a number for the time or errors saved.
Sample answer: New staff waited two days for their accounts, set up by hand. I wrote a script that created them from the hiring record, with a review step, and the wait fell to an hour. It also removed the typing mistakes that had caused most of the support tickets.
Security questions and answers
How do you decide which vulnerability to fix first?
What it checks: risk-based thinking.
A good answer shows: Severity, exposure and the value of what is behind it, not the score alone.
Sample answer: A critical score on a machine nobody can reach waits behind a medium one on the login page. I rank by how exposed the system is, what an attacker would gain and whether an exploit is already in use.
Walk me through your response to a suspected breach.
What it checks: a calm, ordered response.
A good answer shows: Contain, keep evidence, find the scope, tell the right people, fix, write it up.
Sample answer: First contain: isolate the machine, revoke the credentials. I keep logs and images as evidence, work out what was reached and when, and inform the people who must know, by the plan. Afterwards we fix the cause and write what happened.
How do you get developers to care about security?
What it checks: working with other teams.
A good answer shows: Make the secure way the easy way, and explain the risk in their terms.
Sample answer: Checks run in their pipeline and say exactly which line to fix. I explain a finding by what an attacker could do with it, and I fix the first few with them.
What is the principle of least privilege?
What it checks: a basic that shapes daily work.
A good answer shows: Each person and service has only the access the task needs, for as long as it needs it.
Sample answer: Everyone gets the access their task needs and no more. In practice: roles instead of personal grants, access that expires, and a review every quarter of who can still reach what.
How do you stay current with new threats?
What it checks: whether learning is a habit.
A good answer shows: Named sources and an example of something you applied.
Sample answer: I read vendor advisories and two or three researchers every week, and test what matters in a lab. Last month that meant patching a library two days before the exploit was public.
Questions
Questions about the work itself
How do you approach protocol design? Walk me through an example from your last job.
One of the core duties of cryptographer work.
A good answer shows: A real example: what you did yourself, the steps in order and the result with a number.
What is the hardest part of cryptographic proofs for you, and how do you handle it?
Another core duty.
A good answer shows: An honest difficulty and the habit or method that makes it work.
Questions
Questions about how you work
Tell me about a time a rule or regulation slowed your work down. What did you do?
55% of today’s 22 open cryptographer postings with a full description mention compliance or regulation.
A good answer shows: That you followed it and still delivered, not that you went around it.
How much are you able to travel for work?
36% of today’s 22 open cryptographer postings with a full description mention travel.
A good answer shows: An honest number of days or share of time, so there are no surprises after the offer.
Tell me about a time you had to win over people outside your team who disagreed with you.
27% of today’s 22 open cryptographer postings with a full description mention stakeholders.
A good answer shows: Who they were, what each side wanted, what you did to reach agreement and how it ended.
You have three urgent requests and time for one. How do you choose?
18% of today’s 22 open cryptographer postings with a full description ask you to set priorities.
A good answer shows: A rule you really use (impact, deadline, who is blocked) and how you tell the people who have to wait.
Have you helped someone else get better at their work? What did you do?
18% of today’s 22 open cryptographer postings with a full description mention mentoring.
A good answer shows: A specific person and skill, how you taught it and how they did afterwards.
Questions
Questions almost every interview has
Tell me about yourself.
Almost every interview opens with it.
A good answer shows: Under a minute: your current work as a cryptographer, one result with a number and why this job is the next step. Not your whole resume.
Why do you want to work here?
It tests whether you read about the company.
A good answer shows: Something specific: a product, a goal from the posting or a problem you can help with.
Why are you leaving your current job?
It checks for problems you might bring along.
A good answer shows: What you are moving towards, said briefly, with no criticism of your employer.
What are your salary expectations?
Only 41% of today’s cryptographer postings state pay, so be ready to name a figure.
A good answer shows: A range you can defend. Today’s 28 cryptographer postings that state a yearly US-dollar range advertise a median of $178K; the middle half $142K to $200K. Ask for their range first if you can.
What is one of your weaknesses?
A classic, still asked.
A good answer shows: A real weakness that does not block this job, and what you do about it.
Do you have any questions for us?
The last question of almost every interview.
A good answer shows: Two or three questions you prepared; the list below has some.
Questions
Questions to ask them
- What would make someone in this role successful in the first six months?
- It shows you think about results, and the answer tells you what the job really is.
- Why is this role open?
- A new role, growth or someone leaving: each tells you something different.
- What is the pay range for this role?
- Only 41% of today’s cryptographer postings state one; asking is normal.
- How will my work be measured, and how often will we review it?
- You learn what matters to your manager before you start.
- What are the next steps, and when will you decide?
- You know when to follow up, and you can plan around other offers.
Questions
Questions about a cryptographer interview
- What questions are asked in a cryptographer interview?
- Questions about the skills the postings name (Cryptography, PKI, Security clearance), about how you work (compliance and regulation, travel, stakeholders) and the questions almost every interview has, such as “Tell me about yourself” and your salary expectations.
- How should I answer cryptographer interview questions?
- With a real example: the situation, what you had to do, what you did yourself and the result, with a number. This is the STAR method; aim for 60 to 90 seconds an answer.
- How do I prepare for a cryptographer interview?
- Prepare three real stories with a number each (a result, a problem you solved, work with other people), practise them out loud for 60 to 90 seconds, and revise the skills the postings name most: Cryptography, PKI, Security clearance. Read the posting again the day before: the duties it lists are what they will ask about.
- Is a cryptographer interview hard?
- It depends on the level: today’s cryptographer postings ask for 5 years of experience at the median. Most interviews mix questions about the skills in the posting with questions about how you work; the technical part is easier with a real example ready for each skill.
- What salary should I ask for as a cryptographer?
- Today’s 28 cryptographer postings that state a yearly US-dollar range advertise a median of $178K. Adjust for your experience and the country, and ask for their range first.
Career
Prepare with
Interview answer builder
Turn an example into a 60 to 90 second answer, with checks for a number and for “I”.
The cryptographer resume example
The results interviewers ask about, written as resume lines.
Thank-you email
Send it on the day of the interview, written from four fields.
76 open cryptographer jobs
Read from employers’ own careers pages every hour.
Directory
Everything about cryptographer work
Counted from the open postings on Nov 25, 2026, read from employers’ own careers pages and recounted on every update. The questions are ours; no employer’s interview is copied here.