RustCrypto / meta

Meta-crates of the RustCrypto project
11 stars 6 forks source link

JWT/JWS/JWE implementation #13

Closed CBenoit closed 2 years ago

CBenoit commented 2 years ago

Hi!

I see you reserved the name for a "Json Web Encryption" crate: https://crates.io/crates/jwe

Did you already have a plan for it?

I happen to have implemented a subset of JOSE specification, notably JWE, as part of my job in picky crate.

We are in the process of improving the JWE implementation with @zer0x64 (who contributed Deoxys crate in the past), and we thought maybe we could also move it under RustCrypto in the same move. Indeed, we have similar requirements (portable code for one) and already are happy users of a few RustCrypto crates.

picky is licensed under MIT OR Apache-2.0 and my company is okay with me pulling out some components and spending some time improving it in order to integrate in the wider Rust ecosystem.

I’m open to sending the JWT and JWS pieces as well.

Let me know what you think!

Cheers!

Erik1000 commented 2 years ago

@CBenoit there has just been a push for JOSE (which JWE is a part of) from @npmccallum via https://github.com/RustCrypto/JOSE/pull/1. Please have a look at my comment over there. Maybe we can join forces? I have also reserved the jose crate on crates.io.

CBenoit commented 2 years ago

@CBenoit there has just been a push for JOSE (which JWE is a part of) from @npmccallum via RustCrypto/JOSE#1. Please have a look at my comment over there. Maybe we can join forces? I have also reserved the jose crate on crates.io.

Hi @Erik1000 , sure! Did you hear anything from @npmccallum yet?

npmccallum commented 2 years ago

I was hoping to push the code yesterday, but discovered a minor issue. I'm hoping to push it today. It currently is a single crate called jose with JWK and JWS implementations. No JWE yet.

CBenoit commented 2 years ago

Great, I’ll simply open PRs to help push forward the effort when your initial code lands =)

npmccallum commented 2 years ago

My PR is open: https://github.com/RustCrypto/JOSE/pull/2