shlogg · Early preview
Jen C. @yujhenchen

Understanding RSA Algorithm: Private & Public Keys Explained

To use RSA algorithm, you need a private key for signing & public key for verification. Private key generates tokens, while public key verifies their validity.

Pre-requisites

Complete setup in Simple JWT

  
  
  Introduction

In order to use the RSA algorithm, we need to have a private key and a public key. The private key is used during the signing process of generating the token. The public key is used to verify that the token is valid.

  
  
  What is RSA? How does an RSA work?