PHP 8.2.30
Preview: hash.js Size: 164 B
//opt/alt/alt-nodejs19/root/lib/node_modules/npm/node_modules/@npmcli/metavuln-calculator/lib/hash.js

const { createHash } = require('crypto')

module.exports = ({ name, source }) => createHash('sha512')
  .update(JSON.stringify([name, source]))
  .digest('base64')

Directory Contents

Dirs: 0 × Files: 4

Name Size Perms Modified Actions
13.10 KB lrw-r--r-- 2023-12-06 18:07:50
Edit Download
522 B lrw-r--r-- 2023-12-06 18:07:50
Edit Download
164 B lrw-r--r-- 2023-12-06 18:07:50
Edit Download
3.86 KB lrw-r--r-- 2023-12-06 18:07:50
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).