
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.
A simple pseudo-encryption function to obfuscate and restore numbers in JavaScript. Obscurify is particularly useful to create a more uniform and obfuscated form of a publicly visible number (i.e. an object's id number used in URLs).
Include obscurify in the module in which you would like to use it. The function works both ways and thus is used both to obscure and restore the original value. It works on numbers up to 32 bits.
var obscurify = require('obscurify');
// obscurify!
var result = obscurify.pseudoEncrypt(1);
console.log(result); // 1919821825
console.log(obscurify.pseudoEncrypt(result)); // 1
Note that this is using the default values to generate the obfuscated number and will be the same as anyone using the default module. The generation may be changed by choosing different constants (3 6-digit numbers) using the init function as follows:
var obscurify = require('obscurify');
obscurify.init({
c1: 324324,
c2: 923405,
c3: 329742
});
Code copyright 2015 Rocket Wagon Labs LLC. Code released under the MIT license.
FAQs
Obscure database ids.
We found that obscurify 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.