All files / src/utils sha256.ts

100% Statements 3/3
100% Branches 0/0
100% Functions 1/1
100% Lines 2/2
1 2 3 4 5 6 71x   3786x        
import * as crypto from 'crypto';
 
export const toSha256 = (what: string | Buffer) => crypto
  .createHash('sha256')
  .update(what, 'utf8')
  .digest();