MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / unpad

Function unpad

backup/sysxc.js:381–384  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

379}
380
381function unpad(text) {
382 const padding = text.charCodeAt(text.length - 1);
383 return text.slice(0, text.length - padding);
384}
385
386function aesEncrypt(key, data) {
387 const cipher = crypto.createCipheriv('aes-128-ecb', key, '');

Callers 4

decrypt_3desFunction · 0.85
decrypt_responseFunction · 0.85
aesDecryptFunction · 0.85
query_all_files_cloudMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected