Get your own Node server
const crypto = require('crypto');

// Data to hash
const data = 'Hello, World!';

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

// Update the hash with data
hash.update(data);

// Get the digest in hex format
const digest = hash.digest('hex');

console.log('Data:', data);
console.log('SHA-256 Hash:', digest);

              
Data: Hello, World!
SHA-256 Hash: dffd6021bb2bd5b0af676290809ec3a53191dd81c7f70a4b28688a362182986f