source:
trip-planner-front/node_modules/karma/lib/utils/crypto-utils.js@
6a3a178
Last change on this file since 6a3a178 was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 207 bytes |
Line | |
---|---|
1 | 'use strict' |
2 | |
3 | const crypto = require('crypto') |
4 | |
5 | const CryptoUtils = { |
6 | sha1 (data) { |
7 | return crypto |
8 | .createHash('sha1') |
9 | .update(data) |
10 | .digest('hex') |
11 | } |
12 | } |
13 | |
14 | module.exports = CryptoUtils |
Note:
See TracBrowser
for help on using the repository browser.