v12.0.0 - initial commit

This commit is contained in:
padreug 2025-12-31 19:04:13 +01:00
commit e2c49ea43c
1145 changed files with 97211 additions and 0 deletions

17
packages/server/bin/hkdf Executable file
View file

@ -0,0 +1,17 @@
#!/usr/bin/env node
'use strict'
const hkdf = require('futoin-hkdf')
const label = process.argv[2]
const masterSeedHex = process.argv[3].trim()
if (process.argv.length !== 4) {
console.error('hdkf <label> <masterKey>')
console.error('masterKey should be in hex encoding.')
process.exit(3)
}
const masterSeed = Buffer.from(masterSeedHex, 'hex')
console.log(hkdf(masterSeed, 32, { salt: 'lamassu-server-salt', info: label }).toString('hex'))