Pudu programming language
Menu
API reference

Std.Crypto.derive

1 declaration

fn

derive: &Bytes -> &Bytes -> Int -> Int -> Bytes

This is a callable function.

What it does

A key derived from a password, slowly and on purpose.

Slowness is the property: a password is short enough to guess, and this is

what makes each guess cost the guesser what it cost the owner once. The

iteration count is therefore not a tuning knob to lower — raise it as

machines get faster. See Std.App.Password for storing one.

Read the signature

  • The text after the name is the type checked by Pudu.
  • Read arrows from left to right: inputs come first, and the final type is returned.
  • & borrows a value for this call instead of moving or copying it.

Back to Std.CryptoSearch related declarations