({
take: [
{ type: "text", label: "Content" },
{
label: "Type",
type: "dropdown",
options: [
"MD5",
"SHA1",
"SHA224",
"SHA256",
"SHA3",
"SHA384",
"SHA512",
"RIPEMD160",
],
},
{
type: "import",
value: "https://cdn.skypack.dev/crypto-js",
module: true,
},
],
make: ([message, type, lib]) => {
return {
type: "code",
value: lib[type](message).toString(),
}
},
})