2021-12-25 14:39:47 +01:00
|
|
|
const crypto = {
|
2024-05-08 13:16:23 +02:00
|
|
|
kdfThreads: 16,
|
|
|
|
staticSalt: '4ghkVQExoneGqZqHTMMhhFfxXsVg2A75QeS1HCM5KAih', // Base58 encoded
|
|
|
|
bcryptRounds: 11, // Note it's kinda bcryptRounds * log.2.16, cause it runs on all 16 threads
|
|
|
|
bcryptVersion: '2a',
|
|
|
|
get staticBcryptSalt() {
|
|
|
|
return `$${this.bcryptVersion}$${this.bcryptRounds}$IxVE941tXVUD4cW0TNVm.O`
|
|
|
|
}
|
2021-12-25 14:39:47 +01:00
|
|
|
}
|
|
|
|
|
2024-05-08 13:16:23 +02:00
|
|
|
module.exports = crypto
|