const cryptoJS = require("crypto-js"); console.log("SHA-256:", cryptoJS.SHA256("hello").toString()); console.log("Keccak-256:", cryptoJS.SHA3("hello", {outputLength: 256}).toString()); console.log("RIPEMD-160:", cryptoJS.RIPEMD160("hello").toString()); console.log("Keccak-512:", cryptoJS.SHA3("hello").toString()); // Output: // SHA-256: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824 // Keccak-256: 1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8 // RIPEMD-160: 108f07b8382412612c048d07d13f814118445acd // Keccak-512: 52fa80662e64c128f8389c9ea6c73d4c02368004bf4463491900d11aaadca39d47de1b01361f207c512cfa79f0f92c3395c67ff7928e3f5ce3e3c852b392f976