How to use the gen_salt_sync function from bindings
Find comprehensive JavaScript bindings.gen_salt_sync code examples handpicked from public code repositorys.
347 348 349 350 351 352 353 354 355 356
rounds = 10; } else if (typeof rounds !== 'number') { throw new Error('rounds must be a number'); } return bindings.gen_salt_sync(rounds, crypto.randomBytes(16)); }; /// generate a salt /// @param {Number} [rounds] number of rounds (default 10)
0
0
1
bindings.createKey is the most popular function in bindings (8616 examples)