Skip to main content

decode_phc

Function decode_phc 

Source
pub fn decode_phc(
    encoded: &str,
) -> Result<(Params, Vec<u8>, Vec<u8>), Argon2Error>
Expand description

Decode an Argon2id PHC string format into (params, salt, tag).

Expected format: $argon2id$v=19$m=<m>,t=<t>,p=<p>$<salt_b64>$<hash_b64>