# Module crypto::scrypt [−] [src]

This module implements the Scrypt key derivation function as specified in [1].

# References

[1] - C. Percival. Stronger Key Derivation Via Sequential Memory-Hard Functions. http://www.tarsnap.com/scrypt/scrypt.pdf

## Structs

ScryptParams | The Scrypt parameter values.

## Functions

scrypt | The scrypt key derivation function.
scrypt_check | scrypt_check compares a password against the result of a previous call to scrypt_simple and returns true if the passed in password hashes to the same value.
scrypt_simple | scrypt_simple is a helper function that should be sufficient for the majority of cases where an application needs to use Scrypt to hash a password for storage. The result is a String that contains the parameters used as part of its encoding. The scrypt_check function may be used on a password to check if it is equal to a hashed value.

# 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`)