working save data

This commit is contained in:
GEEKiDoS
2024-04-09 16:14:04 +08:00
parent 1fa7d578fe
commit 83e63acc94
7 changed files with 315 additions and 191 deletions
+9
View File
@@ -0,0 +1,9 @@
import { createHash } from 'crypto';
export function fromToken(token: string) {
const key = createHash('md5')
.update(token, 'utf-8')
.digest('hex');
return ('LCHAN' + key).slice(0, 13);
}