View Source SecretVault.KDFs.PBKDF2 (SecretVault v1.2.2)

PKCS #2 PBKDF2 (Password-Based Key Derivation Function 2).

Implements SecretVault.KeyDerivation.

Summary

Functions

Call the PBKDF function.

Types

@type option() :: {:key_length, pos_integer()} | {:iterations_count, pos_integer()}

Functions

@spec kdf(binary(), [option()]) :: binary()

Call the PBKDF function.

Options

  • :key_length - set the key length (default is 32);
  • :iterations_count - set the count of iterations (default is 5).