Class: Decoded

Decoded


new Decoded(key, salt, iter)

Stores hashed pass-phrase as decoded Strings.

Parameters:
Name Type Description
key String

The decoded key

salt String

The decoded salt

iter Number

The number of PBKDF2 iterations

Source:

Methods


encode(enc)

Encodes the Decoded object into an Encoded object.

Parameters:
Name Type Description
enc String

Encoding scheme to be used

Source:
See:
Returns:

The Encoded object

Type
Encoded

getIteration()

Source:
Returns:
Type
Number

getKey()

Source:
Returns:
Type
String

getSalt()

Source:
Returns:
Type
Buffer

setIteration(iter)

Parameters:
Name Type Description
iter Number
Source:

setKey(key)

Parameters:
Name Type Description
key Buffer
Source:

setSalt(salt)

Parameters:
Name Type Description
salt Buffer
Source:

toString()

The hash string has the format iter:salt:key.

Source:
Returns:

The hash string

Type
String