Skip to main content

generate_passphrase_encrypted_identity

Function generate_passphrase_encrypted_identity 

Source
pub fn generate_passphrase_encrypted_identity(out: &Path) -> Result<String>
Expand description

Generate a passphrase-encrypted break-glass identity, returning its recipient.

The identity is piped straight into age -p, so the private half is never written unencrypted. age reads the passphrase from the terminal, which is why this is offered only on an interactive run.