Skip to content

OS X SHA512 failure #13

Description

@andyfleming

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions