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.
basex-encoder
Advanced tools
BaseX Encoder is encoder / decoder for any base X. It can encode / decode to and from string and buffer
+ Written in TypeScript
+ 0 dependencies
First, install BaseX Encoder using npm.
npm install --save basex-encoder
# or
yarn add basex-encoder
Note: BaseX Encoder assumes a JavaScript environment with global
Buffer
. Use safe-buffer to polyfill.
import { encoder } from 'basex-encoder';
const base58 = encoder('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz');
// or
const base6 = encoder('abcdef', 'utf8');
// encode from string to string
const encoded = base58.encode('text to encode');
// decode from string to string
const decoded = base58.decode(encoded);
// encode from buffer to string
const encoded = base58.encodeFromBuffer(rawBuffer);
// decode from string to buffer
const decodedBuffer = base58.decodeToBuffer(encoded);
FAQs
Encode / decode any base X to and from string or buffer
The npm package basex-encoder receives a total of 402 weekly downloads. As such, basex-encoder popularity was classified as not popular.
We found that basex-encoder 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.