移動文件

This commit is contained in:
CrescentLeaf
2025-07-16 22:52:58 +08:00
parent 930a9c6c07
commit 200a867171
27 changed files with 5 additions and 31 deletions

View File

@@ -0,0 +1,10 @@
import crypto from 'node:crypto'
/**
* 获取 Sha-256 Hex 格式哈希
* @param { crypto.BinaryLike } data
* @returns
*/
export function sha256(data) {
return crypto.createHash('sha256').update(data).digest().toString('hex')
}