- Install browserify
npm install -g browserify
-
Save the
pgp.util.js
contents to a file. -
Run
browserify ./pgp.util.js -o ./openpgp.bundle.js
-
Now include
openpgp.bundle.js
in any HTML page, and theencrypt
,decrypt
, andgenerate
methods will be available on thewindow
object.