mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-05 20:27:52 +08:00
* feat/add cls hot articles * rename router to one word * Apply suggestions from code review * import crypto * add heading 3 * refactor: migrate to v2 ---------
16 lines
420 B
JavaScript
16 lines
420 B
JavaScript
const CryptoJS = require('crypto-js');
|
|
|
|
const getSignedSearchParams = (searchParams) => {
|
|
searchParams = new URLSearchParams(searchParams);
|
|
searchParams.sort();
|
|
searchParams.append('sign', CryptoJS.MD5(CryptoJS.SHA1(searchParams.toString()).toString()).toString());
|
|
return searchParams;
|
|
};
|
|
|
|
module.exports = {
|
|
appName: 'CailianpressWeb',
|
|
os: 'web',
|
|
sv: '7.7.5',
|
|
getSignedSearchParams,
|
|
};
|