{"id":19956413,"url":"https://github.com/drudge/node-gpg","last_synced_at":"2025-04-05T17:07:42.191Z","repository":{"id":505219,"uuid":"1851173","full_name":"drudge/node-gpg","owner":"drudge","description":"GPG encryption and decryption in node.js by way of the gpg command-line tool","archived":false,"fork":false,"pushed_at":"2022-04-07T03:43:14.000Z","size":47,"stargazers_count":123,"open_issues_count":13,"forks_count":35,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-29T15:08:28.172Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drudge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-06-05T18:11:10.000Z","updated_at":"2025-03-07T21:11:41.000Z","dependencies_parsed_at":"2022-08-06T09:15:34.433Z","dependency_job_id":null,"html_url":"https://github.com/drudge/node-gpg","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drudge%2Fnode-gpg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drudge%2Fnode-gpg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drudge%2Fnode-gpg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drudge%2Fnode-gpg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drudge","download_url":"https://codeload.github.com/drudge/node-gpg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247369952,"owners_count":20927928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T01:34:13.016Z","updated_at":"2025-04-05T17:07:42.165Z","avatar_url":"https://github.com/drudge.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GPG Encryption/Decryption in Node.js\n[![travis][travis-image]][travis-url]\n[![npm][npm-image]][npm-url]\n[![downloads][downloads-image]][downloads-url]\n\n[travis-image]: https://travis-ci.org/drudge/node-gpg.svg?branch=master\n[travis-url]: https://travis-ci.org/drudge/node-gpg\n\n[npm-image]: https://img.shields.io/npm/v/gpg.svg?style=flat\n[npm-url]: https://npmjs.org/package/gpg\n\n[downloads-image]: https://img.shields.io/npm/dm/gpg.svg?style=flat\n[downloads-url]: https://npmjs.org/package/gpg\n\nThis module is a wrapper around `gpg` for use within Node. Node-GPG takes care of spawning `gpg`, passing it\nthe correct arguments, and piping input to stdin. It can also pipe input in from files and output out to files.\n\nUse Node-GPG if you are considering calling `gpg` directly from your application.\n\n## Requirements\n\nIn order to use Node-GPG, you'll need to have the `gpg` binary in your $PATH.\n\n## Installation\n\n    npm install gpg\n\n## Usage\n\nNode-GPG supports both direct calls to GPG with string arguments, and streaming calls for piping input and output\nfrom/to files.\n\nSee [the source](lib/gpg.js) for more details.\n\nIf a function you need is not implemented, you can call gpg directly with arguments of your choice by\ncalling `gpg.call(stdinStr, argsArray, cb)`, or `gpg.callStreaming(inputFileName, outputFileName, argsArray, cb)`.\n\n## Notes\n\nExisting implementations of PGP in Javascript are blocking and unfeasibly slow for server use.\nIn casual testing, encrypting a simple 400-character email to an El-Gamal key took upwards of 11 seconds using\n[openpgpjs](https://github.com/openpgpjs/openpgpjs) and 14 seconds with [kbpgp](https://github.com/keybase/kbpgp),\nbut takes less than 0.1 seconds with `gpg` directly.\n\n## Contributors\n\nThe following are the major contributors of `node-gpg` (in no specific order).\n\n  * Nicholas Penree ([drudge](http://github.com/drudge))\n  * [freewil](http://github.com/freewil)\n  * Samuel Reed [strml](http://github.com/strml)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrudge%2Fnode-gpg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrudge%2Fnode-gpg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrudge%2Fnode-gpg/lists"}