mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-28 19:49:58 +08:00
AlasGG
This commit is contained in:
5
webapp/packages/preload/src/nodeCrypto.ts
Normal file
5
webapp/packages/preload/src/nodeCrypto.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import {type BinaryLike, createHash} from 'node:crypto';
|
||||
|
||||
export function sha256sum(data: BinaryLike) {
|
||||
return createHash('sha256').update(data).digest('hex');
|
||||
}
|
||||
Reference in New Issue
Block a user