Skip to content

Instantly share code, notes, and snippets.

View gupta-ujjwal's full-sized avatar
🏠
Working from home

Ujjwal Gupta gupta-ujjwal

🏠
Working from home
View GitHub Profile
@gupta-ujjwal
gupta-ujjwal / JoseSigning.hs
Last active September 5, 2020 18:36
Sample Jose Signing/Verifying implementation for haskell
module JoseSigning where
import Prelude
import qualified Crypto.JOSE.JWS as JWS
import qualified Crypto.JOSE.JWK as JWK
import qualified Crypto.JOSE.Header as Header
import qualified Crypto.JOSE.Compact as Compact
import qualified Data.Aeson as J
import qualified Data.ByteString.Base64 as Base64 (decode, encode)
import qualified Data.ByteString.Lazy as LBS