Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function getUniqueRepresentName(isfrontware, handle) {
return isfrontware ? "fw-" : "bw-" +
crc
.crc24(handle.toString())
.toString(16);
}
Store.prototype.getChecksum = function getChecksum(data) {
var hash = crc.crc24(data)
return new Buffer('' +
String.fromCharCode(hash >> 16) +
String.fromCharCode((hash >> 8) & 0xFF) +
String.fromCharCode(hash & 0xFF),
'ascii').toString('base64')
}