import { createHash } from "https://deno.land/std@0.90.0/hash/mod.ts";

const isBase64 = Deno.args[0] === "base64";
const hash = createHash("md5");
hash.update("Your data here");
console.log("hash: ", hash.toString(isBase64 ? "base64" : undefined));