Files: 65191f9a9664f013ebe726bb95a1a54b086e1bd5 / test / test-50-package-a-binary / test-x-index.js
353 bytesRaw
1 | ; |
2 | |
3 | var fs = require('fs'); |
4 | var path = require('path'); |
5 | var crypto = require('crypto'); |
6 | |
7 | function sha256 (s) { |
8 | return crypto.createHash('sha256').update(s).digest('hex'); |
9 | } |
10 | |
11 | var file = fs.readFileSync(path.join(__dirname, 'test-y-binary.png')); |
12 | console.log(sha256(file)); // 72c388896ca159d734244fcf556cc7e06adb255ff09d5eb721f144066a65d3b0 |
13 |
Built with git-ssb-web