Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
encode-as-words
Advanced tools
Encode raw binary data as a collection of human readable words, for easy communication.
e.g.
100101111111100111000100001001111110011100010
=> peach den vanity chelsea
Example use case, displaying a users public IP for them to read out over the phone during support calls
142.150.42.3
-> liberals tesco cv
npm install encode-as-words
or
yarn add encode-as-words
This package supports both browser environments & node js.
import {encodeBytesAsWords, decodeBytesFromWords} from "encode-as-words";
const ipBytes = new Uint8Array([142, 150, 42, 3]);
const words = encodeBytesAsWords(ipBytes);
console.log(words.join(" ")); // liberals tesco cv
const decodedBytes = decodeBytesFromWords(words, 4);
console.log(decodedBytes); // 142, 150, 42, 3
This is not a form of encryption. Do not store sensitive data using this package.
FAQs
Encode bytes as a human readable string of english words
The npm package encode-as-words receives a total of 0 weekly downloads. As such, encode-as-words popularity was classified as not popular.
We found that encode-as-words 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.