
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
short-crypt
Advanced tools
ShortCrypt is a very simple encryption library, which aims to encrypt any data into something random at first glance.
ShortCrypt is a very simple encryption library, which aims to encrypt any data into something random at first glance. Even if these data are similar, the ciphers are still pretty different. The most important thing is that a cipher is only 4 bits larger than its plaintext so that it is suitable for data used in an URL or a QR Code. Besides these, it is also an ideal candidate for serial number generation.
import { ShortCrypt } from "short-crypt";
Then, create a ShortCrypt instance with a key (string).
const sc = new ShortCrypt(key);
For encryption, you can choose to use one of these following methods:
encrypt: encrypts data to an object, a cipher separated into base and bodyencryptToURLComponent: encrypts data to a string suitably concatenated with URLsencryptToQRCodeAlphanumeric: encrypts data to a string with the compatibility with QR code alphanumeric modeOnly a string or a byte array can be encrypted.
const cipher1 = sc.encryptToURLComponent(plainText);
const cipher2 = sc.encryptToQRCodeAlphanumeric(plainText);
For decryption, you can use decrypt, decryptURLComponent, or decryptQRCodeAlphanumeric method.
const result1 = sc.decryptURLComponent(cipher1);
const result2 = sc.decryptQRCodeAlphanumeric(cipher2);
FAQs
ShortCrypt is a very simple encryption library, which aims to encrypt any data into something random at first glance.
We found that short-crypt 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

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.