
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
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
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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.