Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
dat-encoding
Advanced tools
Dat's way of encoding and decoding dat links.
var encoding = require('dat-encoding')
var link = '6161616161616161616161616161616161616161616161616161616161616161'
var buf = encoding.decode(link)
console.log('%s -> %s', link, buf)
console.log('%s -> %s', buf, encoding.encode(buf))
Encode buf
into a hex string. Throws if buf
isn't 32 bytes of length.
If buf
is already a string, checks if it's valid and returns it.
Decode str
into its binary representation. Also supports dat://
and dat.com/
links. Throws if the raw link isn't 64 bytes of base64.
If str
is already a buffer, checks if it's valid and returns it.
MIT
FAQs
Encode and decode Dat links
The npm package dat-encoding receives a total of 145 weekly downloads. As such, dat-encoding popularity was classified as not popular.
We found that dat-encoding demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 open source maintainers 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.