Encryption

Decryption

Algo Types

  • Symmetric
    • Example: HMAC SHA256
    • Shared secret key for both signing and verification
    • generally simple and fast
  • Asymmetric
    • Example: RSA
    • Uses pubic/private key pairs
    • private key signs the token
    • public key verifies the token
    • generally slow