minigame-std
    Preparing search index...

    Function md5

    • 计算字符串或 Buffer 的 MD5 值。

      Parameters

      • data: DataSource

        需要计算 MD5 值的数据,可以是字符串或 BufferSource。

      Returns string

      计算得到的 MD5 十六进制字符串(32 位)。

      const hash = md5('Hello, World!');
      console.log(hash); // '65a8e27d8879283831b664bd8b7f0ad4'