encryption: {saltBits: 256,algorithm: 'aes-256-cbc',iterations: 1},// ...
var generateSalt = function () {var randomSalt = Cryptiles.randomBits(options.saltBits);// ...var salt = randomSalt.toString('hex');return generateKey(salt);};
Salt size (and other random strings) is based on entropy, not absolute string size. It also does not have to produce the same string since we just need a salt buffer that we can feed back into the crypto algorithms. The main concern is that the salt has enough entropy.
EH
--
You received this message because you are subscribed to the Google Groups "oz-protocol" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
oz-protocol...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Salt size (and other random strings) is based on entropy, not absolute string size. It also does not have to produce the same string since we just need a salt buffer that we can feed back into the crypto algorithms. The main concern is that the salt has enough entropy.