0
0

【Deno Deploy】md5sum api【md5】

Posted at

javascriptでmd5するの結構めんどいのでAPI作った

使い方

const md5 = text => fetch('https://md5sum.deno.dev/' + text).then(r=>r.text())

console.log(await md5('abc'))

ソースコード

import { Md5 } from "https://deno.land/std@0.119.0/hash/md5.ts"

const headers = { 'Access-Control-Allow-Origin': '*' }
Deno.serve((req: Request) => new Response(new Md5().update(req.url.slice(24)).toString(), { headers }));
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0