Guest User

Untitled

a guest
May 25th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. const crypto = require('crypto');
  2.  
  3. function createSha256CspHash(content) {
  4. return 'sha256-' + crypto.createHash('sha256').update(content).digest('base64');
  5. }
Add Comment
Please, Sign In to add comment