mirror of
https://code.chipmunk.land/Parker2991/NitoriBot/
synced 2026-12-02 07:05:39 -05:00
7 lines
229 B
JavaScript
7 lines
229 B
JavaScript
function generateHash (command, key, senderUUID, timestamp = Date.now()) {
|
|
const sha256 = crypto.createHash('sha256')
|
|
|
|
sha256.update(Math.floor(Date.now() / 10000) + config.keys.normalKey)
|
|
.digest('hex').substring(0, 16)
|
|
}
|