pub fn create(path: &Path, passphrase: SecretString) -> Result<Identity>Expand description
Generates a new X25519 identity, encrypts it with passphrase, and writes
the result to path. Refuses to overwrite an existing file.
ยงErrors
Error::IdentityExistsifpathalready exists.Error::Io/Error::Encrypton filesystem or age failures.