The below script runs fails on OS X:
var crypt = require('crypt3');
var password = 'secret';
var hash = '$6$rounds=1234$56abadac833a5$fQIaUG/da/KqlJc5DzCIym/PL.ZhEdw5VOZsw7mofkm.3aE2rZ/rjDCczymRbj1V3rF6lzJO7DR1WOd2ZnC6O.';
var result = (hash === crypt(password, hash));
console.log(result); // true on ubuntu, false on os x
Specific cases:
- PASSES:
Ubuntu 14.04.1 and node v5.4.0
- FAILES:
OS X 10.11.1 and node v5.1.0
The below script runs fails on OS X:
Specific cases:
Ubuntu 14.04.1andnode v5.4.0OS X 10.11.1andnode v5.1.0