You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can unpad hex ...0020200030303 to ...0020200 ?
I am doing this:
let buffer = Buffer.from(paddedHex),
bytes = new Uint8Array(buffer.length),
i = buffer.length;
while (i--) {
bytes[i] = buffer[i];
}
Buffer.from(pkcs7.unpad(bytes)).toString('hex')