D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
alt-nodejs19
/
root
/
usr
/
lib
/
node_modules
/
npm
/
node_modules
/
sigstore
/
dist
/
util
/
Filename :
crypto.d.ts
back
Copy
/// <reference types="node" /> /// <reference types="node" /> /// <reference types="node" /> import { BinaryLike, KeyLike, KeyPairKeyObjectResult } from 'crypto'; export declare function generateKeyPair(): KeyPairKeyObjectResult; export declare function createPublicKey(key: string | Buffer): KeyLike; export declare function signBlob(data: NodeJS.ArrayBufferView, privateKey: KeyLike): Buffer; export declare function verifyBlob(data: Buffer, key: KeyLike, signature: Buffer, algorithm?: string): boolean; export declare function hash(data: BinaryLike): Buffer; export declare function randomBytes(count: number): Buffer;