Skip to content

Commit

Permalink
🔊 Private key length
Browse files Browse the repository at this point in the history
  • Loading branch information
malted committed Feb 10, 2024
1 parent 960db34 commit 03dfc1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/content/content.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ fn img(malted_state: &State<RwLock<MaltedState>>, colour_scheme: &str) -> Redire
let query = format!("center={query}&z=8&scale=2&colorScheme={colour_scheme}");
let path = format!("/api/v1/snapshot?{query}&teamId={team_id}&keyId={key_id}");

println!("pk len: {}", private_key.len());

let signature: Signature = SigningKey::from_pkcs8_pem(&private_key)
.expect(&format!("FOR DEBUGGING: {}", private_key))
.expect(&format!("FOR DEBUGGING: {}", private_key.len()))
.sign(&path.as_bytes());
let signature: String = URL_SAFE.encode(signature.to_bytes());

Expand Down

0 comments on commit 03dfc1e

Please sign in to comment.