fix readme
This commit is contained in:
parent
8b10a32655
commit
0dadbff695
|
@ -9,11 +9,11 @@ OpenPGP.js
|
||||||
|
|
||||||
For server side use, install via npm:
|
For server side use, install via npm:
|
||||||
|
|
||||||
npm install openpgpjs
|
npm install openpgp
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
var openpgp = require('openpgpjs);
|
var openpgp = require('openpgp');
|
||||||
var key = '-----BEGIN PGP PUBLIC KEY BLOCK ... END PGP PUBLIC KEY BLOCK-----';
|
var key = '-----BEGIN PGP PUBLIC KEY BLOCK ... END PGP PUBLIC KEY BLOCK-----';
|
||||||
var publicKey = openpgp.key.readArmored(key);
|
var publicKey = openpgp.key.readArmored(key);
|
||||||
var pgpMessage = openpgp.encryptMessage(publicKey.keys, 'Hello, World!');
|
var pgpMessage = openpgp.encryptMessage(publicKey.keys, 'Hello, World!');
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "openpgpjs",
|
"name": "openpgp",
|
||||||
"description": "A Javascript implementation of the OpenPGP protocol.",
|
"description": "A Javascript implementation of the OpenPGP protocol.",
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"homepage": "http://openpgpjs.org/",
|
"homepage": "http://openpgpjs.org/",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.8"
|
"node": ">=0.8"
|
||||||
},
|
},
|
||||||
"keywords": ["crypto", "pgp", "gpg", "openpgp", "openpgp.js"],
|
"keywords": ["crypto", "pgp", "gpg", "openpgp"],
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"directories": {
|
"directories": {
|
||||||
"lib": "src"
|
"lib": "src"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user