Skip to content

Instantly share code, notes, and snippets.

View jackrdye's full-sized avatar

Jack Dye jackrdye

  • The University of Sydney
View GitHub Profile
@aegrumet
aegrumet / decrypt-nextauth-jwe.go
Created December 4, 2022 01:24
Decrypt a NextAuth jwe from somewhere else
package main
import (
"crypto/sha256"
"fmt"
"io"
"github.com/lestrrat-go/jwx/v2/jwa"
"github.com/lestrrat-go/jwx/v2/jwe"
"golang.org/x/crypto/hkdf"