nodejs sha512 decrypt
const crypto = require('crypto');
function decryptSha512(encryptedText, key) {
const decipher = crypto.createDecipher('sha512', key);
let decrypted = decipher.update(encryptedText, 'hex', 'utf-8');
decrypted += decipher.final('utf-8');
return decrypted;
}
// Example Usage
const encryptedText = '...'; // Replace with the actual encrypted text
const key = '...'; // Replace with the actual key
const decryptedText = decryptSha512(encryptedText, key);
console.log(decryptedText);