Class: LockedSeedCipherPwHash

hcSeedBundle.LockedSeedCipherPwHash(finishUnlockCb, salt, memLimit, opsLimit, header, cipher)

Unlock a SeedCipher with a straight forward pwhashed passphrase.

Constructor

new LockedSeedCipherPwHash(finishUnlockCb, salt, memLimit, opsLimit, header, cipher)

You won't use this directly, call UnlockedSeedBundle.fromLocked()
Parameters:
Name Type Description
finishUnlockCb function the finishUnlock callback function
salt Uint8Array argon salt
memLimit number argon memLimit
opsLimit number argon opsLimit
header Uint8Array secretstream header
cipher Uint8Array secretstream cipher
Source:

Methods

unlock(passphrase) → {UnlockedSeedBundle}

Unlock to an UnlockedSeedBundle
Parameters:
Name Type Description
passphrase PrivSecretBuf parseSecret(Uint8Array)
Source:
Returns:
Type
UnlockedSeedBundle