scrypt

This block is part of the crypto group and was last modified in core v10.4.28.

scrypt v10.4.28

scrypt is a password-based key derivation function that is designed to be expensive computationally and memory-wise in order to make brute-force attacks unrewarding.

In pins 3
  • password required
    value

    The password used to scrypt

  • salt required
    value

    The salt used to scrypt

  • length
    number

    The key length to be used

Out pins 3
  • success
    condition
  • output
    value

    hex output

  • error
    value

    If an error occured, this pin is filled

Derives a key from password and salt via scrypt with FIXED cost N=16384, r=8, p=1. length is the raw key size in BYTES (default 24); output is its hex encoding, so twice as many characters. Deterministic: identical password, salt and length always produce the same output. On failure success is false and error holds the message.

A typical wiring for scrypt: value feeds the password pin; value feeds the salt pin; the success out pin feeds branch.

Studio canvas example for the scrypt block: typical wiring for scrypt.

Version history

Introduced in v10.4.28.


Back to crypto Return to the main group to view all sub-groups Back to crypto Return to the group to view all blocks within this group