MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / zeroPad

Function zeroPad

wxapp/nice.js:68–72  ·  view source on GitHub ↗
(buffer)

Source from the content-addressed store, hash-verified

66}
67
68function zeroPad(buffer) {
69 const rest = buffer.length % 16;
70 if (rest === 0) return buffer;
71 return Buffer.concat([buffer, Buffer.alloc(16 - rest)]);
72}
73
74function encryptPayload(data) {
75 const t = Math.floor(Date.now() / 1000);

Callers 1

encryptPayloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected