Skip to main content

parse_seed

Function parse_seed 

Source
pub fn parse_seed(input: &str) -> Result<Stored, String>
Expand description

Reads either a bare base32 seed or a full otpauth:// URI.

One entry point because the form field, the CLI flag and the paste handler all accept whichever the user has to hand, and a user who pastes a URI into a box labelled “secret” is doing the reasonable thing.