gmkitx API - v0.10.1
    正在准备搜索索引...

    变量 sha512常量

    sha512: (
        data: string | Uint8Array<ArrayBufferLike>,
        options?: SHAOptions,
    ) => string = shaFunctions.sha512

    计算 SHA-512;字符串按 UTF-8 编码,默认返回小写十六进制。

    类型声明

      • (data: string | Uint8Array<ArrayBufferLike>, options?: SHAOptions): string
      • 计算 SHA-512 哈希摘要

        参数

        • data: string | Uint8Array<ArrayBufferLike>

          输入数据(字符串或 Uint8Array)

        • 可选options: SHAOptions

          哈希选项

        返回 string

        哈希摘要(默认十六进制字符串,128 个字符)

        const hash = sha512('abc');
        console.log(hash); // 十六进制格式