Mongo.PBKDF2.generate

You're seeing just the function generate, go back to Mongo.PBKDF2 module for more information.
Link to this function

generate(secret, salt, opts \\ [])

View Source

Returns a derived key suitable for use.

Options

  • :iterations - defaults to 1000 (increase to at least 2^16 if used for passwords)
  • :length - a length in octets for the derived key. Defaults to 32
  • :digest - an hmac function to use as the pseudo-random function. Defaults to :sha256