Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manyuanrong/deno-checksum
Sha1、MD5 algorithms for Deno
https://github.com/manyuanrong/deno-checksum
Last synced: about 1 month ago
JSON representation
Sha1、MD5 algorithms for Deno
- Host: GitHub
- URL: https://github.com/manyuanrong/deno-checksum
- Owner: manyuanrong
- License: mit
- Archived: true
- Created: 2019-02-19T07:03:07.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-16T05:16:39.000Z (about 4 years ago)
- Last Synced: 2024-10-24T09:20:53.810Z (about 2 months ago)
- Language: TypeScript
- Homepage:
- Size: 37.1 KB
- Stars: 6
- Watchers: 2
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-deno - deno-checksum - SHA1/MD5算法。 (Uncategorized / Uncategorized)
- awesome-deno - deno-checksum - SHA1/MD5 algorithms.![GitHub stars](https://img.shields.io/github/stars/manyuanrong/deno-checksum?style=plastic) (Modules / Online Playgrounds)
- awesome-deno-cn - @manyuanrong/deno-checksum
README
# deno-checksum
【Deprecated】Use [std/hash](https://deno.land/std/hash) instead
[![tag](https://img.shields.io/github/tag/manyuanrong/deno-checksum.svg)](https://github.com/manyuanrong/deno-checksum)
[![Build Status](https://github.com/manyuanrong/deno-checksum/workflows/ci/badge.svg?branch=master)](https://github.com/manyuanrong/deno-checksum/actions)
[![license](https://img.shields.io/github/license/manyuanrong/deno-checksum.svg)](https://github.com/manyuanrong/deno-checksum)
[![tag](https://img.shields.io/badge/deno-v0.42.0-green.svg)](https://github.com/denoland/deno)```ts
import { Hash, encode } from "https://deno.land/x/[email protected]/mod.ts";console.log(new Hash("md5").digest(encode("hello world")).hex());
// or
console.log(new Hash("md5").digestString("hello world").hex());
// 5eb63bbbe01eeed093cb22bb8f5acdc3console.log(new Hash("sha1").digestString("hello world").hex());
// or
console.log(new Hash("sha1").digest(encode("hello world")).hex());
// 2aae6c35c94fcfb415dbe95f408b9ce91ee846ed
```