Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 9 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | const crypto = require('crypto'); |
||
2 | |||
3 | export default { |
||
4 | get(key) { |
||
5 | const hash = crypto.createHash('sha1'); |
||
6 | hash.update(key); |
||
7 | return hash.digest('hex'); |
||
8 | } |
||
9 | }; |
||
10 |