appwrite/tests/resources/functions/binary-request/index.js
2025-07-10 12:55:45 +02:00

6 lines
192 B
JavaScript

const crypto = require('crypto')
module.exports = async(context) => {
const hash = crypto.createHash('md5').update(context.req.bodyBinary).digest("hex")
return context.res.send(hash);
};