Class: RbNaCl::PasswordHash::SCrypt

Inherits:
Object
  • Object
show all
Extended by:
Sodium
Defined in:
lib/rbnacl/password_hash/scrypt.rb

Overview

The scrypt sequential memory hard password hashing function

scrypt is a password hash (or password based KDF). That is to say, where most hash functions are designed to be fast because hashing is often a bottleneck, scrypt is slow by design, because it's trying to "strengthen" the password by combining it with a random "salt" value then perform a series of operation on the result which are slow enough to defeat brute-force password cracking attempts.

scrypt is similar to the bcrypt and pbkdf2 password hashes in that it's designed to strengthen passwords, but includes a new design element called "sequential memory hardness" which helps defeat attempts by attackers to compensate for their lack of memory (since they're typically on GPUs or FPGAs) with additional computation.

Method Summary

Methods included from Sodium

primitive, sodium_constant, sodium_function, sodium_primitive, sodium_type