md564
Base64 MD5 of strings and JSON, where JSON attributes are sorted before comparison for consistent results
Install 🔨
npm install md564
Usage 💡
md564 = 'md564'console // 1TGK0fk4hfTgamcP4G5xMIobj1 = bar: 'grill' foo: 'man'obj2 = foo: 'man' bar: 'grill'console // 3MEEOkTwl6NBNuzrYVpHeXconsole // 0_8LeiEkKgp~Kwo5qV15E1console // 3MEEOkTwl6NBNuzrYVpHeX
If param2 is true
then the object attributes will be sorted prior to being made into a string and obtaining the MD5 value.
Contributions 💪
😄 Feedback, problem reports, enhancement requests are welcome.
🆙 Example code are better.
🆒 Pull requests are best.