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

    类 SHA384

    SHA-384 哈希类

    输出长度:384 位(48 字节)96 个十六进制字符)

    层级

    • SHABase
      • SHA384
    索引
    • 完成哈希计算并返回结果 注意:调用此方法后哈希器状态会被重置

      返回 string

      哈希摘要

    • 重置哈希状态

      返回 this

      当前实例(支持链式调用)

    • 更新哈希状态(增量哈希)

      参数

      • data: string | Uint8Array<ArrayBufferLike>

        要添加的数据(字符串或 Uint8Array)

      返回 this

      当前实例(支持链式调用)

    • 静态方法:计算 SHA-384 哈希

      参数

      • data: string | Uint8Array<ArrayBufferLike>

        输入数据

      • outputFormat: OutputFormatType = OutputFormat.HEX

        输出格式(默认 hex)

      返回 string

      哈希摘要

      输入类型或输出格式无效时抛出错误