Add bower support
This commit is contained in:
parent
58322c299d
commit
3779739a63
14
README.md
14
README.md
|
@ -11,6 +11,18 @@ For server side use, install via npm:
|
||||||
|
|
||||||
npm install openpgp
|
npm install openpgp
|
||||||
|
|
||||||
|
|
||||||
|
### Browser support
|
||||||
|
|
||||||
|
For use in browser, install via bower:
|
||||||
|
|
||||||
|
bower install --save openpgp
|
||||||
|
|
||||||
|
Or Fetch a minified build under [releases](https://github.com/openpgpjs/openpgpjs/releases).
|
||||||
|
|
||||||
|
The library can be loaded via AMD/require.js or accessed globally via `window.openpgp`.
|
||||||
|
|
||||||
|
|
||||||
### Examples
|
### Examples
|
||||||
|
|
||||||
#### Encryption
|
#### Encryption
|
||||||
|
@ -30,9 +42,7 @@ For server side use, install via npm:
|
||||||
pgpMessage = openpgp.message.readArmored(pgpMessage);
|
pgpMessage = openpgp.message.readArmored(pgpMessage);
|
||||||
var plaintext = openpgp.decryptMessage(privateKey, pgpMessage);
|
var plaintext = openpgp.decryptMessage(privateKey, pgpMessage);
|
||||||
|
|
||||||
### Browser support
|
|
||||||
|
|
||||||
Fetch a minified build under [releases](https://github.com/openpgpjs/openpgpjs/releases). The library can be loaded via AMD/require.js or accessed globally via `window.openpgp`.
|
|
||||||
|
|
||||||
OpenPGP.js currently only fully supports browsers that implement `window.crypto.getRandomValues`. If you can help us support more browsers and runtimes, please chip in!
|
OpenPGP.js currently only fully supports browsers that implement `window.crypto.getRandomValues`. If you can help us support more browsers and runtimes, please chip in!
|
||||||
|
|
||||||
|
|
35
bower.json
Normal file
35
bower.json
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{
|
||||||
|
"name": "openpgpjs",
|
||||||
|
"version": "0.7.2",
|
||||||
|
"homepage": "http://openpgpjs.org/",
|
||||||
|
"authors": [
|
||||||
|
"OpenPGP Development Team <list@openpgpjs.org> (https://github.com/openpgpjs/openpgpjs/graphs/contributors)"
|
||||||
|
],
|
||||||
|
"description": "OpenPGP.js is a Javascript implementation of the OpenPGP protocol. This is defined in RFC 4880.",
|
||||||
|
"main": "src/index.js",
|
||||||
|
"moduleType": [
|
||||||
|
"amd",
|
||||||
|
"es6",
|
||||||
|
"globals",
|
||||||
|
"node"
|
||||||
|
],
|
||||||
|
"keywords": [
|
||||||
|
"crypto",
|
||||||
|
"gpg",
|
||||||
|
"pgp",
|
||||||
|
"openpgp",
|
||||||
|
"encryption"
|
||||||
|
],
|
||||||
|
"license": "LGPL 2.1",
|
||||||
|
"ignore": [
|
||||||
|
"**/.*",
|
||||||
|
"dist/openpgp*.tgz",
|
||||||
|
"node_modules",
|
||||||
|
"bower_components",
|
||||||
|
"test",
|
||||||
|
"tests",
|
||||||
|
"dist",
|
||||||
|
"doc"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user