barrysteyn / node-scrypt

Scrypt for Node
370 stars 88 forks source link

How to parse the resulting hash? #180

Closed ccoenen closed 6 years ago

ccoenen commented 6 years ago

I'm currently using node-scrypt in a project. A bunch of hashes in my database can be verified by node-scrypt. I can't however use them with anything else. I am trying to parse the values, and so far I'm stuck here: https://gist.github.com/ccoenen/3b228a32790ad0a5e1b29adfde963e96

I can read the individual parts correctly, the checksum matches, but I can't recreate the same signature/HMAC. What am I missing?

ccoenen commented 6 years ago

I updated the gist with a working solution, in case anyone else is interested.