
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
a good library for pkcs7 padding
there isn't a good pkcs7 library on NPM. pkcs7 is okay, but it only supports padding to 16 byte blocks.
install with npm install goodpkcs7
example usage:
// get the pad and unpad functions
const { pad, unpad } = require("goodpkcs7");
// pad an array, buffer, or uint8array
// note that the result will be a uint8array
const padded = pad([1, 2, 3, 4]);
// unpad a uint8array
const unpadded = unpad(padded);
goodpkcs7 provides two methods:
pad(message, bytes = 16) - Pads an array, buffer, or Uint8Array message to a multiple of the specified number of bytes (default 16). Returns a Uint8Array.unpad(message, bytes = 16) - Unpads an array, buffer, or Uint8Array message given that its length is a multiple of the specified number of bytes (default 16). Returns a Uint8Array. Errors if the message is not properly padded.goodpkcs7 can be used in the same way as pkcs7, but goodpkcs7 lets you specify the number of bytes per block if necessary.
goodpkcs7 is in the public domain. do whatever you want with it. i don't care.
FAQs
A package for PKCS7 padding that actually works.
We found that goodpkcs7 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.