您好,可以参考以下示例:
const crypto = require('crypto'); const hmac = crypto.createHmac('md5', 'abc'); const up = hmac.update('123456'); const result = up.digest('hex'); eo.info(result);