Research
Security News
Malicious npm Package Typosquats react-login-page to Deploy Keylogger
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
@jhinkle/gpg
Advanced tools
Readme
This module is a wrapper around gpg
for use within Node. Node-GPG takes care of spawning gpg
, passing it
the correct arguments, and piping input to stdin. It can also pipe input in from files and output out to files.
Use Node-GPG if you are considering calling gpg
directly from your application.
In order to use Node-GPG, you'll need to have the gpg
binary in your $PATH.
npm install @mykeels/gpg
Node-GPG supports both direct calls to GPG with string arguments, and streaming calls for piping input and output from/to files.
See the examples for more details.
If a function you need is not implemented, you can call gpg directly with arguments of your choice by
calling gpg.call(stdinStr, argsArray, cb)
, or gpg.callStreaming(inputFileName, outputFileName, argsArray, cb)
.
Existing implementations of PGP in Javascript are blocking and unfeasibly slow for server use.
In casual testing, encrypting a simple 400-character email to an El-Gamal key took upwards of 11 seconds using
openpgpjs and 14 seconds with kbpgp,
but takes less than 0.1 seconds with gpg
directly.
The following are the major contributors of node-gpg
(in no specific order).
FAQs
Unknown package
We found that @jhinkle/gpg 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 unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
Security News
The JavaScript community has launched the e18e initiative to improve ecosystem performance by cleaning up dependency trees, speeding up critical parts of the ecosystem, and documenting lighter alternatives to established tools.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.