UNPKG

agentsqripts

Version:

Comprehensive static code analysis toolkit for identifying technical debt, security vulnerabilities, performance issues, and code quality problems

15 lines (12 loc) 351 B
/** * @file Generate hash for block comparison * @description Single responsibility: Create MD5 hash of content for fast comparison */ const crypto = require('crypto'); /** * Generate hash for block comparison */ function generateHash(content) { return crypto.createHash('md5').update(content).digest('hex'); } module.exports = generateHash;