mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-26 07:07:16 +08:00
6 lines
164 B
TypeScript
6 lines
164 B
TypeScript
import {type BinaryLike, createHash} from 'node:crypto';
|
|
|
|
export function sha256sum(data: BinaryLike) {
|
|
return createHash('sha256').update(data).digest('hex');
|
|
}
|