- Install browserify
npm install -g browserify
-
Save the
pgp.util.jscontents to a file. -
Run
browserify ./pgp.util.js -o ./openpgp.bundle.js -
Now include
openpgp.bundle.jsin any HTML page, and theencrypt,decrypt, andgeneratemethods will be available on thewindowobject.