
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Pure JavaScript implemented png decoder (as well as encoder) that supports modern browsers as well as Node.JS
View this demo
Supported PNG features:
In Browser:
<canvas></canvas>
<script src="src/zlib/zlib.js"></script>
<!-- load inflate.js only if you don't want inflate run in Worker -->
<script src="src/zlib/inflate.js"></script>
<script src="src/png.js"></script>
<script>
PNG.load(image_url).then(function (png) {
png.renderTo(document.querySelector('canvas'))
})
</script>
In Node.JS:
var fs = require('fs')
require('yapd').load('rgba.png')
PNG encoder is added. See encoder
Returns a promise of type PNGImage
.
In web browsers, a fetch
or XHR
request is sent to get the content. In Node.JS, a local file is read.
PNG.load('rgba.png').then(function (png) {
// png instanceof PNGImage
})
Decodes the png image file content.
var buf = ...
png.decode(buf).then(function (png) {
// png instanceof PNGImage
})
A png image decoded from buffer, contains several properties and methods:
grayscale
rgb
rgba
platte
and grayscale_alpha
FAQs
Pure JavaScript PNG decoder/encoder
We found that yapd 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.