UNPKG

@frida/crypto

Version:

Node.js's crypto module for Frida

17 lines (16 loc) 594 B
/// <reference types="frida-gum" /> /// <reference types="node" resolution-mode="require"/> import { Buffer } from "buffer"; declare const _default: { createHash: typeof createHash; }; export default _default; export declare function createHash(type: ChecksumType): Hash; export declare class Hash { checksum: Checksum; constructor(checksum: Checksum); update(data: string | Buffer | DataView, inputEncoding?: string): Hash; digest(encoding?: BinaryToTextEncoding): Buffer | string; copy(): Hash; } type BinaryToTextEncoding = "binary" | "base64" | "base64url" | "hex";