Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
email-scramble
Advanced tools
Scrambles email addresses and phone numbers with ROT-18 to hide them from bots
Encode/decode email addresses and phone numbers with ROT-18 to hide them from bots. Can be used server-side with Node.js or in a browser.
If you'd like to know more about obfuscation techniques and their success ratio, here is a great blog post on the subject.
email-scramble
uses a simple ROT transformation. The default rotation is ROT-18: letters will be rotated by 13 and numbers by 5.
var encodedEmail = emailScramble.encode("mail@example.com");
var decodedMail = emailScramble.decode(encodedMail);
// You can also pick any other flavor of ROT:
function myROT(str) {
// Here letters are obfuscated with ROT-13 and numbers are kept clear.
return emailScramble.rot(13, 0, str);
}
// Functional-programming partial application style:
var myRot = emailScramble.rot.bind(emailScramble, 13, 0);
Here is a real-world example:
// <a href="znvygb:znvy@rknzcyr.pbz" data-email-scramble>Send me an email!</a>
var links = document.querySelectorAll("[data-email-scramble]");
links.forEach(function decodeLink(link) {
link.href = emailScramble.decode(link.href);
});
npm install --save email-scramble
// ES6+
import emailScramble from "email-scramble";
// The CommonJS way.
var emailScramble = require("email-scramble");
FAQs
Scrambles email addresses and phone numbers with ROT-18 to hide them from bots
We found that email-scramble 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.