Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/crypt.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function decryptPersonalKey (ekey, personaltoken) {
// Extract password and seed from personal token
const data = decodePersonalToken(personaltoken)

const hash = crypto.pbkdf2Sync(data.password, data.seed || Config.get().master_key, 12, 32, 'sha256')
const hash = crypto.pbkdf2Sync(data.password, data.seed.length ? data.seed : Config.get().master_key, 12, 32, 'sha256')

// Clear the data buffers
data.password.fill(0)
Expand Down