mirror of
https://github.com/PlayEdu/backend
synced 2025-06-06 15:24:10 +08:00
10 lines
186 B
JavaScript
10 lines
186 B
JavaScript
'use strict';
|
|
const { createHash } = require('crypto');
|
|
|
|
module.exports = env => {
|
|
const hash = createHash('md5');
|
|
hash.update(JSON.stringify(env));
|
|
|
|
return hash.digest('hex');
|
|
};
|