Skip to main content
Module

x/dtils/mod.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.5.0/mod.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