mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
finished todo
This commit is contained in:
parent
2381c3dd7a
commit
8ed4ade3fe
@ -118,7 +118,7 @@ const KeyPairEd25519Create = (passphrase: string[]): Buffer[] => {
|
||||
value.writeBigInt64LE(BigInt(wordIndicies[i]))
|
||||
sodium.crypto_hash_sha512_update(state, value)
|
||||
}
|
||||
// TODO trailing space in login_server
|
||||
// trailing space is part of the login_server implementation
|
||||
const clearPassphrase = passphrase.join(' ') + ' '
|
||||
sodium.crypto_hash_sha512_update(state, Buffer.from(clearPassphrase))
|
||||
const outputHashBuffer = Buffer.alloc(sodium.crypto_hash_sha512_BYTES)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user