RSA Keys

Get a brief introduction to RSA keys with a code example.

Overview

A message authentication code is a good first step to ensure we can transfer data in a reliable way between two parties. Using an array of bytes as a secret key is not ideal. A JWS created by party A can be verified and altered by party B since they also have the same key. If we use an RSA key, we can ensure that no one else can create a signed message.

The RSA ...