Skip to main content

parse_identity

Function parse_identity 

Source
pub fn parse_identity(secret_key: &str) -> Result<MurkIdentity, CryptoError>
Expand description

Parse a secret key string into a MurkIdentity.

Tries age (AGE-SECRET-KEY-1...) first, then SSH PEM format. Encrypted SSH keys are rejected with a clear error.