← Lab /Software

Developers struggle with usability of post-quantum cryptography APIs

PQC APIs are hard to use and lead to poorer developer performance

Software arXiv 16 Feb 2026 Measurement Maturity unclear

Published as “When Security Meets Usability: An Empirical Investigation of Post-Quantum Cryptography APIs”

Why it matters

Improving PQC API usability is essential to prevent insecure implementations by typical developers, directly affecting the security of future quantum-resistant systems.

Summary

QuantCrypt enabled developers to complete the first PQC integration task significantly faster (average 39.37 min vs 65.38 min for PQ-Sandbox) with statistical significance (t(14)=3.09, p=0.0079). However, PQ-Sandbox was faster on the second task (25.43 min vs 41.43 min, t(12)=4.09, p=0.0015) and both APIs showed similar performance on the third task. Across all tasks, developers omitted essential defensive programming (no error handling or key destruction) and PQ-Sandbox users produced more insecure data exposures, indicating usability gaps that can lead to vulnerable implementations. The study is based on a small, remote usability test with 16 participants, so quantitative generalizability is limited.

What they found 5

  1. QuantCrypt users completed Task 1 significantly faster than PQ-Sandbox users.

    “Participants using QuantCrypt finished the task in an average of 39.37 minutes, while the PQ-Sandbox group took considerably longer, averaging 65.38 minutes-a difference of 26 minutes.”

  2. PQ-Sandbox users were significantly faster on Task 2.

    “In this second task, the participant in the PQ-Sandbox group was significantly faster, with a mean completion time of 25.43 minutes, compared to the participant in the QuantCrypt group, who took significantly longer, a mean time of 41.43 minutes.”

  3. No significant performance difference on Task 3 between the two APIs.

    “we found no statistically significant differences between the two groups (t(7) = 0.596, p = 0.5700).”

  4. All participants omitted defensive programming such as error handling and key destruction.

    “In their applications, irrespective of the library employed, every participant failed to incorporate error handling for KEM encapsulation or decapsulation, and none implemented explicit destruction of unused cryptographic keys.”

  5. PQ-Sandbox implementations exposed more insecure data than QuantCrypt implementations.

    “Participants using PQ-Sandbox demonstrated a higher rate of writing insecure applications, including shared-secret exposure and mishandling of key material. In contrast, the QuantCrypt group resulted in fewer data exposures in their applications, with only two leaks combined.”

Caveats 4

  • PQ-Sandbox was faster on Task 2, contradicting a simple claim that QuantCrypt is uniformly more usable.
  • Despite faster completion times, QuantCrypt users still produced security-critical errors (e.g., incorrect DSA verification handling).
  • The findings are based on a small sample of participants, which limits quantitative generalizability but provides strong qualitative insight into early-stage usability patterns.
  • This study examined general developer behavior under limited documentation and limited onboarding, reflecting a low-support environment rather than real-world operational deployments or cryptographic experts’ deployment.

What’s new here 4

  • First empirical usability study of post-quantum cryptography APIs with developers lacking security expertise.
  • Direct comparison of an endpoint-based API (PQ-Sandbox) versus a local library API (QuantCrypt).
  • Application of the Cognitive Dimensions Framework to identify specific usability barriers in PQC APIs.
  • Analysis of concrete security hygiene errors (e.g., missing error handling, key destruction) arising from API design.