Get your own Node server
// Import the crypto module
const crypto = require('crypto');

// Create a hash object
const hash = crypto.createHash('sha256');

// Output the hash object to show it's been created
console.log('Hash object created with algorithm:', hash.constructor.name);
console.log('Algorithm:', hash.digest.name);

              
Hash object created with algorithm: Hash
Algorithm: digest