git ssb

0+

cel-desktop / ssb-pkg



Tree: 1eb144e388da5f1a3466703f56ac4ab591d700fc

Files: 1eb144e388da5f1a3466703f56ac4ab591d700fc / test / test-50-package-a-binary / test-x-index.js

353 bytesRaw
1'use strict';
2
3var fs = require('fs');
4var path = require('path');
5var crypto = require('crypto');
6
7function sha256 (s) {
8 return crypto.createHash('sha256').update(s).digest('hex');
9}
10
11var file = fs.readFileSync(path.join(__dirname, 'test-y-binary.png'));
12console.log(sha256(file)); // 72c388896ca159d734244fcf556cc7e06adb255ff09d5eb721f144066a65d3b0
13

Built with git-ssb-web