mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2026-03-28 23:44:25 +00:00
Delete serverUtils.ts
This commit is contained in:
@@ -1,7 +0,0 @@
|
|||||||
import crypto from 'crypto';
|
|
||||||
|
|
||||||
export const hashObj = (obj: { [key: string]: any }) => {
|
|
||||||
const json = JSON.stringify(obj, Object.keys(obj).sort());
|
|
||||||
const hash = crypto.createHash('sha256').update(json).digest('hex');
|
|
||||||
return hash;
|
|
||||||
};
|
|
||||||
Reference in New Issue
Block a user