
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.
@evokegroup/crypto
Advanced tools
Requires NodeJS 18+
extends Error
extends Error
Property | Type |
---|---|
inputEncoding | BufferEncoding |
keyEncoding | BufferEncoding |
ivEncoding | BufferEncoding |
outputEncoding | BufferEncoding |
iterations | number |
hmac | string |
authTagLength | number |
authTagLocation | AuthTagLocation |
extends EncryptOpts
Property | Type |
---|---|
authTag | Buffer|string |
Property | Type | Default | Description |
---|---|---|---|
data | Buffer , string | The encrypted data | |
authTag | Buffer , string | The authentication tag |
returns Promise<Buffer | string>
Parameter | Type | Default | Description |
---|---|---|---|
algorithm | string | The encryption algorithm | |
data | Buffer , string | The data to be encrypted | |
key | Buffer , string | The encryption key | |
iv | Buffer , string | The encryption IV | |
opts | DecryptOpts | ||
opts.inputEncoding | BufferEncoding | utf8 | |
opts.keyEncoding | BufferEncoding | base64 | |
opts.ivEncoding | BufferEncoding | base64 | |
opts.outputEncoding | BufferEncoding | base64 | null will cause the returned value to be a Buffer . |
opts.iterations | number | 1000 | |
opts.hmac | string | sha256 | |
opts.authTag | Buffer , string | ||
opts.authTagLength | number | 16 | |
opts.authTagLocation | number | APPEND |
returns Buffer | string
Parameter | Type | Default | Description |
---|---|---|---|
algorithm | string | The encryption algorithm | |
data | Buffer , string | The data to be encrypted | |
key | Buffer , string | The encryption key | |
iv | Buffer , string | The encryption IV | |
opts | DecryptOpts | ||
opts.inputEncoding | BufferEncoding | utf8 | |
opts.keyEncoding | BufferEncoding | base64 | |
opts.ivEncoding | BufferEncoding | base64 | |
opts.outputEncoding | BufferEncoding | base64 | null will cause the returned value to be a Buffer . |
opts.iterations | number | 1000 | |
opts.hmac | string | sha256 | |
opts.authTag | Buffer , string | ||
opts.authTagLength | number | 16 | |
opts.authTagLocation | number | APPEND |
returns Promise<Buffer | string | EncryptionResult>
Parameter | Type | Default | Description |
---|---|---|---|
algorithm | string | The encryption algorithm | |
data | Buffer , string | The data to be encrypted | |
key | Buffer , string | The encryption key | |
iv | Buffer , string | The encryption IV | |
opts | EncryptOpts | ||
opts.inputEncoding | BufferEncoding | utf8 | |
opts.keyEncoding | BufferEncoding | base64 | |
opts.ivEncoding | BufferEncoding | base64 | |
opts.outputEncoding | BufferEncoding | base64 | null will cause the returned value to be a Buffer . |
opts.iterations | number | 1000 | |
opts.hmac | string | sha256 | |
opts.authTagLength | number | 16 | |
opts.authTagLocation | number | APPEND |
returns Buffer | string | EncryptionResult
Parameter | Type | Default | Description |
---|---|---|---|
algorithm | string | The encryption algorithm | |
data | Buffer , string | The data to be encrypted | |
key | Buffer , string | The encryption key | |
iv | Buffer , string | The encryption IV | |
opts | EncryptOpts | ||
opts.inputEncoding | BufferEncoding | utf8 | |
opts.keyEncoding | BufferEncoding | base64 | |
opts.ivEncoding | BufferEncoding | base64 | |
opts.outputEncoding | BufferEncoding | base64 | null will cause the returned value to be a Buffer . |
opts.iterations | number | 1000 | |
opts.hmac | string | sha256 | |
opts.authTagLength | number | 16 | |
opts.authTagLocation | number | APPEND |
returns Buffer | string
Generates a random key appropriate for the given encryption algorithm.
Parameter | Type | Default | Description |
---|---|---|---|
algorithm | string | The encryption algorithm | |
outputEncoding | BufferEncoding |
returns Buffer | string
Generates a random initialization vector appropriate for the given encryption algorithm.
Parameter | Type | Default | Description |
---|---|---|---|
algorithm | string | The encryption algorithm | |
outputEncoding | BufferEncoding |
returns string[]
Get a list of algorithms supported by this library.
Parameter | Type | Default | Description |
---|---|---|---|
scheme | string | null | Return algorithms only for the given encryption scheme (e.g. aes , aria , camellia , des , des3 ) |
returns boolean
Parameter | Type | Default | Description |
---|---|---|---|
algorithm | string |
Property | Type |
---|---|
salt | Buffer , string |
saltEncoding | BufferEncoding |
saltLocation | SaltLocation |
inputEncoding | BufferEncoding |
outputEncoding | BinaryToTextEncoding |
returns Buffer | string
Parameter | Type | Default | Description |
---|---|---|---|
algorithm | string | The encryption algorithm | |
data | Buffer , string | The data to be encrypted | |
opts | HashOpts | ||
opts.salt | Buffer , string | ||
opts.saltEncoding | BufferEncoding | base64 | |
opts.saltLocation | SaltLocation | APPEND | |
opts.inputEncoding | BufferEncoding | utf8 | |
opts.outputEncoding | BinaryToTextEncoding | hex | null will cause the returned value to be a Buffer . |
returns Buffer | string
Parameter | Type | Default | Description |
---|---|---|---|
saltLength | nmber | 16 | |
outputEncoding | BufferEncoding |
FAQs
Crypto utilities
The npm package @evokegroup/crypto receives a total of 0 weekly downloads. As such, @evokegroup/crypto popularity was classified as not popular.
We found that @evokegroup/crypto demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
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.