
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
binary-string
Advanced tools
Binary strings still have their uses. Don't let huge warning of Node.js
stop you from using them. There are valid reasons to use binary strings
instead of low-level Buffer
s. Who cares about performance? If we
would care so much, we all would write in assembly :-).
This module will try to use Node.js binary strings if you are using version create before their removal (while destroying all warnings about them). If your Node.js version doesn't have binary strings, they are emulated which makes them even slower (but well, you have them, and if you care about performance, write in assembly).
Unlike Buffer
s, you can do anything you can with normal strings on
binary strings (internally, they are normal strings). You can use
regular expressions, you can compare them, you can use string methods
on them, you can use them as object keys. The only disadvantage is that
you cannot easily change single characters (this is probably only real
advantage of Buffer
s).
var binaryString = require('binary-string'),
// Converts buffer to binary string
fromBuffer = binaryString.fromBuffer,
// Converts binary string to buffer
toBuffer = binaryString.toBuffer
FAQs
Binary string because binary encoding still has its uses.
The npm package binary-string receives a total of 0 weekly downloads. As such, binary-string popularity was classified as not popular.
We found that binary-string 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.