Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/dtils/mod.unstable.ts>Md5

The best unofficial library of utilities for Deno applications
Go to Latest
class Md5
Re-export
import { Md5 } from "https://deno.land/x/dtils@2.6.0/mod.unstable.ts";

A utility for creating an Md5 hash from a string or Uint8Array.

Md5.hash("Hello!") // 952d2c56d0485958336747bcdd98590d

Incremental hashing is also supported:

const md5 = new Md5()

md5.append("Hello")
md5.append("World!")

md5.get() // 06e0e6637d27b2622ab52022db713ce2

Methods

append(contents: Uint8Array | string): void
get(): string

Static Methods

hash(contents: Uint8Array | string): string