crypto.ssh_parse_pubkey

crypto

ssh_parse_pubkey(content) -> pubkey, err

Parse an ssh-ed25519 public key string

Parses an ssh-ed25519 public key string (the format found in .pub files or authorized_keys) and extracts the raw 32-byte Ed25519 public key. Returns nil and an error if the content is not a valid ssh-ed25519 key.