Skip to content
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.

manyuanrong/deno-checksum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deno-checksum

tag Build Status license tag

import { Hash, encode } from "https://deno.land/x/checksum@1.2.0/mod.ts";

console.log(new Hash("md5").digest(encode("hello world")).hex());
// or
console.log(new Hash("md5").digestString("hello world").hex());
// 5eb63bbbe01eeed093cb22bb8f5acdc3

console.log(new Hash("sha1").digestString("hello world").hex());
// or
console.log(new Hash("sha1").digest(encode("hello world")).hex());
// 2aae6c35c94fcfb415dbe95f408b9ce91ee846ed