You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
186 B

7 months ago
  1. 'use strict';
  2. const { createHash } = require('crypto');
  3. module.exports = env => {
  4. const hash = createHash('md5');
  5. hash.update(JSON.stringify(env));
  6. return hash.digest('hex');
  7. };