Sign messages or verify signatures using RSA keys.
In public-key cryptography (like RSA), you have two keys: a Public Key (shared with the world) and a Private Key (kept secret). Most people associate RSA with encryption, but it is equally important for Authentication.
Because RSA operations are mathematically slow and have strict size limits, we rarely sign the entire message directly. Instead, the process works like this:
When creating a signature, Web Crypto offers two main RSA padding schemes:
When creating a digital signature, which key must the sender use?