Swift JOSE is a package for the Swift programming language that provides implementation for the JSON Object Signing and Encryption (JOSE) family of specifications.
CFRG Elliptic Curve Diffie-Hellman (ECDH) and Signatures in JSON Object Signing and Encryption (JOSE) RFC8037
CBOR Object Signing and Encryption (COSE) and JSON Object Signing and Encryption (JOSE) Registrations for Web Authentication (WebAuthn) Algorithms RFC8812
Swift JOSE
Swift JOSE is a package for the Swift programming language that provides implementation for the JSON Object Signing and Encryption (JOSE) family of specifications.
Overview
Supported Swift Versions
This library supports Swift 5.7 or later and will support the latest stable Swift version and the two versions prior.
Getting Started
To use Swift JOSE, add the following dependency to your Package.swift:
Note that this repository does not have a 1.0 tag yet, so the API is not stable.
Then, add the specific product dependency to your target:
Package Dependencies
Swift JOSE has the following package dependencies:
X448
support.secp256k1
support.AES_CBC_HMAC_SHA2
,PBES2
, and RSA DER encoding support.Usage
JWE Example
For more information on how to use Swift JOSE, please refer to the documentation.