ALGORITHM // AI INFRASTRUCTURE ECONOMICS

RS256 and JWT signing keys

RS256 is an RSA signature with SHA-256, the algorithm that signs most login tokens. A provider publishes the matching public keys in a JSON Web Key Set, and whoever could forge the signature could write a valid token for any user.

RS256 is the name JSON Web Tokens use for an RSA signature with SHA-256. It is the algorithm behind most sign-in buttons: an identity provider signs a token with its private RSA key, and every application that trusts the provider checks the signature against public keys the provider publishes in a JSON Web Key Set, or JWKS. It matters because the signature is the login. Whoever can forge an RS256 signature under a provider's key can write a valid token for any user of any application that trusts it.

The dependence on RSA is close to uniform. OpenID Connect requires providers to support RS256 for ID tokens and makes it the default, and some large providers document no alternative. On 29 November 2026 I read the public key sets of 56 login providers: 50 published only RSA signing keys, most of them 2048-bit, 6 published elliptic-curve keys, and 2 still listed a 1024-bit RSA key. These are keys listed in public key sets. I did not test whether tokens are still signed with them. In the hypothetical case of an RSA break, short token lifetimes would not help much, because an attacker who can forge signatures mints fresh tokens at will.

If you issue tokens, plan the move to ES256 or EdDSA, which are elliptic-curve signatures. Publish the new key in the key set under a new key identifier, wait at least one cache lifetime, switch signing, keep the old key until the longest-lived token has expired, then remove it and delete RS256 from every verifier's allow-list. If you only verify tokens, make the list of accepted algorithms a setting you can change. Elliptic curves are not post-quantum. ML-DSA was specified for tokens in RFC 9964 in May 2026 and can be added the same way once libraries support it.

Frequently asked questions

What is RS256?

RS256 is the JSON Web Token name for an RSA signature computed with SHA-256. An identity provider signs each token with a private RSA key, usually 2048 bits, and applications verify it with the public key from the provider's JSON Web Key Set. OpenID Connect requires providers to support it.

Do login providers still use RSA?

Most publish only RSA keys. On 29 November 2026 I read the public key sets of 56 login providers: 50 published only RSA signing keys, 6 published elliptic-curve keys, and 2 still listed a 1024-bit RSA key. The data shows published keys. It does not show which key signed any individual token.

Is ES256 safer than RS256?

Against a break of RSA alone, yes: ES256 is an elliptic-curve signature and rests on a different problem. Moving to it needs every verifying application to accept the new algorithm. It is not post-quantum, because a large quantum computer would break RSA and elliptic curves together, and NIST retires both on the same schedule.

Source analyses

READ THE FULL ARGUMENT
Which login providers sign tokens with RSA? (RSA exposure survey)
READ THE FULL ARGUMENT
Moving tokens off RS256 (RSA break playbook)

References

Related terms

GLOSSARY
Crypto agility
GLOSSARY
Read the past, fake the present
GLOSSARY
ML-DSA
Michał Piszczek
Michał Piszczek
CEO / CTO / FOUNDER

Term defined and maintained by Michał Piszczek - CTO of Archdesk, author of the Joule Wars and Proof-Adjusted Autonomy frameworks. Quote freely with attribution to piszczek.pl/glossary (CC BY 4.0).