Skip to content
Calcrivo

API Authentication Strength Calculator

Score API authentication on mechanism, credential entropy, rotation, replay protection, secret storage, MFA and lockout.

Inputs

bits

Weight 12

days

Weight 10

Weight 12

Weight 10

Weight 8

Authentication Score

71/ 100

Authentication Grade

C — Fair

Credential Entropy

Strong — guessing is not a practical path

Weakest Link

Replay protection — add a signed nonce and timestamp

Residual Exposure

29%

Replay Exposure

Exposed — any captured request can be replayed verbatim

Step by step

  1. Values used

    Authentication mechanism = HMAC-signed requests — 22; Credential entropy = 128 bits; Nonce and timestamp replay protection = No; Credential rotation interval = 90 days; Least-privilege scopes per credential = Yes; Secrets held in a KMS or vault, never in source = Yes; MFA on the human path that issues credentials = Yes; Failed-attempt throttling or lockout = No

  2. API Authentication Strength

    Authentication score = mechanism (28 mTLS … 0 none) + entropy score (10 at ≥256 bits … 0 below 32) + rotation score (10 at ≤30 days … 0 above a year) + 12 replay protection + 12 secret storage + 10 scoping + 10 MFA on issuance + 8 lockout = 100.

  3. Authentication Score

    = 71 / 100

  4. Authentication Grade

    = C — Fair

  5. Credential Entropy

    = Strong — guessing is not a practical path

  6. Weakest Link

    = Replay protection — add a signed nonce and timestamp

  7. Residual Exposure

    = 29

  8. Replay Exposure

    = Exposed — any captured request can be replayed verbatim

How it works

The mechanism carries the largest weight because it decides what an attacker needs to steal: a private key that never leaves the client, a short-lived token, or a static string that works forever. Entropy, rotation and storage then determine how likely that credential is to leak and how long a leak stays useful. Most API breaches are not exploits but credentials — a key committed to a repository, a token in a log, a shared secret that has not rotated since the integration went live.

Formula

API Authentication Strength

Authentication score = mechanism (28 mTLS … 0 none) + entropy score (10 at ≥256 bits … 0 below 32) + rotation score (10 at ≤30 days … 0 above a year) + 12 replay protection + 12 secret storage + 10 scoping + 10 MFA on issuance + 8 lockout = 100.

mechanism
How the caller proves identity
entropy score
Credential length in bits, scored
rotation score
How often credentials are replaced

Frequently Asked Questions

How is API Authentication Strength calculated?

Authentication score = mechanism (28 mTLS … 0 none) + entropy score (10 at ≥256 bits … 0 below 32) + rotation score (10 at ≤30 days … 0 above a year) + 12 replay protection + 12 secret storage + 10 scoping + 10 MFA on issuance + 8 lockout = 100. The mechanism carries the largest weight because it decides what an attacker needs to steal: a private key that never leaves the client, a short-lived token, or a static string that works forever. Entropy, rotation and storage then determine how likely that credential is to leak and how long a leak stays useful.

Why does API Authentication Strength matter?

Most API breaches are not exploits but credentials — a key committed to a repository, a token in a log, a shared secret that has not rotated since the integration went live.

What values do I need to enter?

This calculator takes 8 inputs: Authentication mechanism, Credential entropy, Nonce and timestamp replay protection, Credential rotation interval, Least-privilege scopes per credential, Secrets held in a KMS or vault, never in source, MFA on the human path that issues credentials, Failed-attempt throttling or lockout. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.

Is HMAC request signing better than a bearer token?

For server-to-server calls, usually yes. The signing key never travels, so a captured request cannot be replayed against another endpoint, and adding a nonce and timestamp to the signed payload blocks replay entirely. Bearer tokens are simpler and fine when they are short-lived and sent only over TLS.

You might also need