https://github.com/isomorphic-git/pgp-plugin
isomorphic-pgp plugin for isomorphic-git
https://github.com/isomorphic-git/pgp-plugin
Last synced: 2 months ago
JSON representation
isomorphic-pgp plugin for isomorphic-git
- Host: GitHub
- URL: https://github.com/isomorphic-git/pgp-plugin
- Owner: isomorphic-git
- License: lgpl-3.0
- Created: 2018-11-21T04:33:24.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-23T21:15:42.000Z (about 7 years ago)
- Last Synced: 2024-04-25T10:42:25.219Z (over 1 year ago)
- Language: JavaScript
- Size: 45.9 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @isomorphic-git/pgp-plugin
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fisomorphic-git%2Fpgp-plugin?ref=badge_shield)
[`isomorphic-pgp`](https://github.com/wmhilton/isomorphic-pgp) plugin for [a future version of] isomorphic-git
Note: no version of isomorphic-git has been released that uses this plugin yet.
It's a chicken and egg problem. Gotta write the plugin first, then modify isomorphic-git to use it.
## Usage
```js
// Node
const { pgp } = require('@isomorphic-git/pgp-plugin')
const git = require('isomorphic-git')
git.plugins.set('pgp', pgp)
// Now you can use git.sign() and git.verify()
```
In contrast with the full-featured [OpenPGP.js plugin](https://github.com/isomorphic-git/openpgp-plugin), this uses `isomorphic-pgp` which is a lightweight, MIT-licensed library.
Right now it is limited to using RSA keys and signatures made using the SHA1 hashing algorithm.
## Tests
```sh
npm test
```
## License
MIT
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fisomorphic-git%2Fpgp-plugin?ref=badge_large)