learn hapi — Encrypt a JWT (the JWE Way)

We already touched the encryption aspect in the previous JWT tutorial on encrypting the JWT payload in “a simple way”. The linked tutorial showed you how to encrypt input data and put the encrypted data into the payload of a signed JWT.

Here, you’ll create a fully encrypted JWT following the JSON Web Encryption (JWE) specification. A JWT that you can’t copy and paste it in a JWT debugger to decode it.

Alright, let’s walk you through the details of creating an encrypted JWT!

hapi Series Overview


Continue reading

University Enrollment Required

Future Students benefit from value packed videos and tutorials.

Enroll to receive exclusive content or sign in if you’re already a Future Student.

Enroll me for $15/mo

Explore the Library

Find interesting tutorials and solutions for your problems.