const crypto = require('crypto');
// Get all supported hash algorithms
const algorithms = crypto.getHashes();
// Display the available algorithms
console.log('Supported hash algorithms:');
console.log('==========================');
algorithms.forEach((algo, index) => {
console.log(`${index + 1}. ${algo}`);
});
// Show the count
console.log(`\nTotal ${algorithms.length} hash algorithms supported.`);
Supported hash algorithms: ========================== 1. blake2b512 2. blake2s256 3. md4 4. md5 5. md5-sha1 6. ripemd160 7. rsa-md5 8. rsa-ripemd160 9. rsa-sha1 10. rsa-sha1-2 11. rsa-sha224 12. rsa-sha256 13. rsa-sha3-224 14. rsa-sha3-256 15. rsa-sha3-384 16. rsa-sha3-512 17. rsa-sha384 18. rsa-sha512 19. rsa-sha512/224 20. rsa-sha512/256 21. rsa-sm3 22. sha1 23. sha224 24. sha256 25. sha3-224 26. sha3-256 27. sha3-384 28. sha3-512 29. sha384 30. sha512 31. sha512-224 32. sha512-256 33. shake128 34. shake256 35. sm3 36. ssl3-md5 37. ssl3-sha1 38. whirlpool Total 38 hash algorithms supported.