source: trip-planner-front/node_modules/karma/lib/utils/crypto-utils.js@ 1ad8e64

Last change on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 207 bytes
Line 
1'use strict'
2
3const crypto = require('crypto')
4
5const CryptoUtils = {
6 sha1 (data) {
7 return crypto
8 .createHash('sha1')
9 .update(data)
10 .digest('hex')
11 }
12}
13
14module.exports = CryptoUtils
Note: See TracBrowser for help on using the repository browser.