# Function crypto::pbkdf2::pbkdf2_simple [−] [src]

    pub fn pbkdf2_simple(password: &str, c: u32) -> Result<String>

pbkdf2_simple is a helper function that should be sufficient for the majority of cases where an application needs to use PBKDF2 to hash a password for storage. The result is a String that contains the parameters used as part of its encoding. The pbkdf2_check function may be used on a password to check if it is equal to a hashed value.

# Format

The format of the output is a modified version of the Modular Crypt Format that encodes algorithm used and iteration count. The format is indicated as "rpbkdf2" which is short for "Rust PBKF2 format."

$rpbkdf2$0$<base64(c)>$<base64(salt)>$<based64(hash)>$

# Arguments

- password - The password to process as a str
- c - The iteration count

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)