Scrypt Generator

Generate scrypt key derivation hashes.

Derive a key or password hash with scrypt, the memory-hard function designed to make large-scale guessing expensive. Set the cost (N), block size (r), parallelism (p) and output length, and use a random 16-byte salt or your own. The tool shows how much memory the settings use (128 × N × r bytes) and how long it took, and gives the key in hex and Base64. OWASP suggests N = 2^17, r = 8, p = 1 for password storage.

Leave blank to generate 16 random bytes (shown as hex). A typed salt is used as UTF-8 text.

Memory used ≈ 128 × N × r = 16 MB. OWASP suggests N=2^17, r=8, p=1 for password storage.

Common use cases

  • Generate test vectors for code that uses scrypt
  • Choose scrypt parameters by measuring the time they take
  • Derive an encryption key from a passphrase

How to use

  1. Enter the password, and a salt or leave it blank for a random one.
  2. Set N, r, p and the key length.
  3. Copy the derived key, and store the salt and parameters with it.

FAQ

What do I need to store?

The salt, N, r, p and the key length, as well as the derived key. You need all of them to check a password later.

Why is it slow on my phone?

scrypt is designed to need lots of memory and time. That's what makes guessing passwords costly for attackers.