sergeyksv / tingodb

Embedded Node.js database upward compatible with MongoDB
www.tingodb.com
1.16k stars 105 forks source link

Use sha256 instead of md5 hashes for FIPS compliance #146

Open giancarlocosta opened 7 years ago

giancarlocosta commented 7 years ago

When running a FIPS build of node (node in FIPS mode), I get errors because md5 hashing is not FIPS compliant. This PR will use sha256 hashing, which is FIPS compliant.

giancarlocosta commented 7 years ago

@sergeyksv I see that the Node7 build failed but it doesn't appear to be from my change. Can we still get this merged?

sergeyksv commented 7 years ago

@giancarlocosta You can always use your branch in references and gets module right from the GIT so this should be that urgent I hope. Fix is trivial but I need to check hot it behave with existing databases, probably some legacy of compatibility stuff will be required.

Pasoon commented 3 years ago

Hello @giancarlocosta, did you end up figuring out how to solve this issue? We are also experiencing errors because of md5 hashing, when changing to sha256 it works.