
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 module can encode/decode strings with the keys.
See endecoder-npm.netlify.app for details.
npm install endecoder
import { encode, decode } from "endecoder";
const PLAIN_TEXT = "this is a test string !#$%&'()";
const { data: encoded, options } = encode(PLAIN_TEXT);
// save options for decoding
const decoded = decode(encoded, options);
console.log(PLAIN_TEXT == decoded);
// true
import { SecretKey } from "endecoder";
const PLAIN_TEXT = "this is a test string !#$%&'()";
const password = "testpassword!!#$%";
const salt = "salt///:*";
const key = SecretKey.activate({
password,
salt
});
const encoded = key.encode(PLAIN_TEXT);
console.log(encoded);
console.log(key.decode(encoded) == PLAIN_TEXT);
// true
// wrong password and salt combination
const alt_key = SecretKey.activate({
password,
salt: "salt///;*"
});
try{
const decoded = alt_key.decode(encoded);
console.log(decoded == PLAIN_TEXT);
// will be false
}catch(error){
// or an error may occur
}
interface SecretKeyOptions {
algorithm?: string;
password?: string;
salt?: string;
}
class SecretKey {
constructor(options?: SecretKeyOptions);
public encode(data: string): string;
public decode(data: string): string;
public encrypt(data: Buffer): Promise<string>;
public decrypt(data: string): Promise<Buffer>;
public static activate(options?: SecretKeyOptions): SecretKey;
public static generateKeys(): {
algorithm: string;
password: string;
salt: string;
};
}
FAQs
A module can encode/decode strings with the keys.
We found that endecoder 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.