square/js-jose

Looking for complete example for enc+sign and verify+dec

realtebo opened this issue · 0 comments

We're looking for a library able to

  • generate client-side the pairs of asymmetric keys for new clients (We of course store only public key, the private one will be saved into 3rd party single installations configuration)

  • given some data, we must both encrypt content and sign using asymmetric keys;

  • when receive a JWT we must verify signature, and then decrypt.

I am not able to figure how to implement all these steps using your library (or companion projects if needed). Could you point me to a starting point to experiment with your project, please?