
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.
@cere/cere-signer
Advanced tools
This lib provides an ability to sign data and verify signed data using blake2b algorithm.
This lib provides an ability to sign data and verify signed data using blake2b algorithm.
nvm exec npm i
nvm exec npm test
import { signObject } from '@cere-io/cere-signer';
const obj = { id: 1 };
signObject(obj);
// after that inside our object a new field called 'signature' will be appeared
console.log(obj.signature);
import { signObject } from '@cere-io/cere-signer';
const obj = { id: 1, event_type: 'checkin', payload: {} };
// we can provide any additional fields as varargs. Order is important!
signObject(obj, 'id', 'event_type', 'payload');
// after that inside our object a new field called 'signature' will be appeared
console.log(obj.signature);
Here we use the same approach as above: we can verify a whole object as well as provide a sequence of fields:
import { verifySignature } from '@cere-io/cere-signer';
const signature = 'sig';
const obj = { id: 1 };
const res = verifySignature(obj, signature); // result as boolean
import { verifySignature } from '@cere-io/cere-signer';
const signature = 'sig';
const obj = { id: 1, event_type: 'checkin', payload: {} };
// the order of fields is important! use the same order as you provided to signObject method.
const res = verifySignature(obj, signature, 'id', 'event_type', 'payload'); // result as boolean
FAQs
This lib provides an ability to sign data and verify signed data using blake2b algorithm.
The npm package @cere/cere-signer receives a total of 5 weekly downloads. As such, @cere/cere-signer popularity was classified as not popular.
We found that @cere/cere-signer 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.