Harness the power of signify(1) to sign arbitrary git objects
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

show path of key when prompting pass

+5 -4
+5 -4
src/utils.rs
··· 522 522 .context("Failed to decode secret key")?; 523 523 524 524 if secret_key.is_encrypted() { 525 - let passphrase = prompt_key_passphrase().map(Zeroizing::new)?; 525 + let passphrase = prompt_key_passphrase(path).map(Zeroizing::new)?; 526 526 527 527 secret_key 528 528 .decrypt_with_password(&passphrase) ··· 536 536 let private_key = minisign::SecretKeyBox::from_string(&key_data[..]) 537 537 .context("Failed to read minisign secret key")?; 538 538 539 - let passphrase = prompt_key_passphrase()?; 539 + let passphrase = prompt_key_passphrase(path)?; 540 540 541 541 PrivateKey::Minisign( 542 542 private_key ··· 547 547 }) 548 548 } 549 549 550 - fn prompt_key_passphrase() -> Result<String> { 551 - rpassword::prompt_password("key passphrase: ").context("Failed to read secret key passphrase") 550 + fn prompt_key_passphrase(path: &Path) -> Result<String> { 551 + rpassword::prompt_password(format!("{} passphrase: ", path.display())) 552 + .context("Failed to read secret key passphrase") 552 553 } 553 554 554 555 /// Try to find and open a git repository.