mirror of
https://github.com/haiwen/seahub.git
synced 2025-04-27 11:01:14 +00:00
* optimize code * update deps * optimize code * optimize code * optimize code * optimize code * repair code bug
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');
|
|
};
|