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.
This is a block cipher algorithm that implements arbitrary length block size that does not have to be byte aligned. The bit pushing is based on BitBuf package and cipher itself is a Feistel network cipher that uses a cryptographic hash function as a mixed (except for 1 bit block size, which uses just one bit from hash and XORs it to the input).
const Abes = require('abes');
const BitBuf = require('bitbuf');
const assert = require('assert');
var x = new Abes('verysecret', 11);
var p1 = BitBuf.from('10110111000');
var c = x.encrypt(p1);
var p2 = x.decrypt(c);
assert.equal(p1.toString(), p2.toString());
Just figure it out. Also key can be an arbitrary length BitBuf. Only one block is encrypted or decrypted at the time.
Timo J. Rinne tri@iki.fi
GPL-2.0
FAQs
Arbitrary block length cipher and decipher class.
We found that abes 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 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.