Skip to content
1 viewer

rust 1,849,384 · typescript 232,426 · javascript 131,078 · python 19,227 · 6,366 files · digest 815dcbacab85 · built in 1.4 s · crystals off

cre8-util-jwt crates cargo crate

Algorithm-agnostic JWT signing — RS256 (RSA PKCS1-v1_5/SHA-256), ES256 (ECDSA P-256/SHA-256), HS256 (HMAC-SHA256). Signing only, no verification or token exchange. Fifth crate in the cre8-util-* tier.

crates/cre8-util-jwt · level 0 · 338 lines (238 code) · 1 files · 28 fns (9 tests) · cyclomatic Σ 34

0workspace deps
1direct dependents
11transitive dependents
0calls out
6calls in
25.3call-graph weight
0.0%exact crystals

Neighbourhood

Left: crates that declare this one. Right: crates it declares (dev-dependencies included). Edge width grows with resolved calls.

Files

lowhigh

Heaviest functions

By call-graph weight (PageRank; 1.0 is the average function). 28 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
JwtBuilder::signsrc/lib.rs:131method81932.6
encoded_jwt_objectsrc/lib.rs:147fn41101.6
sign_jwt_inputsrc/lib.rs:157fn73131.6
SigningKey::algorithmsrc/lib.rs:75method73301.4
JwtBuilder::newsrc/lib.rs:95method51901.3
jwt_signing_inputsrc/lib.rs:141fn51111.2
jwt_signature_segmentsrc/lib.rs:152fn41111.2
JwtBuilder::claims_valuesrc/lib.rs:123method72201
JwtBuilder::claimsrc/lib.rs:113method41601
SigningKey::from_hs256_secretsrc/lib.rs:71method31500.9
sign_rs256src/lib.rs:165fn81110.9
sign_es256src/lib.rs:174fn91110.9
sign_hs256src/lib.rs:184fn71100.9
JwtBuilder::key_idsrc/lib.rs:103method41200.7
JwtBuilder::headersrc/lib.rs:108method41200.7
SigningKey::from_pem_es256src/lib.rs:64method61200.7
decode_jwt_segmentssrc/lib.rs:255fn81300.7
SigningKey::from_pem_pkcs8src/lib.rs:45method61200.6
signing_key_errorsrc/lib.rs:264fn31200.6
JwtBuilder::claims_structsrc/lib.rs:118method41110.6
SigningKey::from_pem_pkcs1src/lib.rs:55method61100.5
hs256_signs_with_shared_secretsrc/lib.rs:204fn201040.5
hs256_signature_is_deterministic_for_same_inputsrc/lib.rs:226fn61040.5
caller_alg_header_is_overridden_by_keysrc/lib.rs:234fn101050.5
key_id_lands_in_headersrc/lib.rs:246fn81050.5
claims_struct_accepts_objects_and_claims_value_rejects_non_objectssrc/lib.rs:269fn161060.5
rs256_pkcs8_and_pkcs1_pems_parse_and_signsrc/lib.rs:287fn292080.5
es256_pem_parses_and_signs_raw_jwt_signaturesrc/lib.rs:318fn201070.5

Outside the workspace

anyhow base64 hmac p256 rsa serde serde_json sha2