I've been working on a web mail app which has relevant code. https://github.com/timprepscius/mv
The code you are probably looking for is in: https://github.com/timprepscius/mv/tree/master/client/web/WebContent/js/mech https://github.com/timprepscius/mv/blob/master/client/web/WebContent/js/async/Support.js and in general: https://github.com/timprepscius/mv/tree/master/client/web/WebContent OpenPGPJS does not work properly with all signatures, (at least as of 0.5.1), so some kludges were made to retest signatures with \r\n and with some binary functions. Hence the weird code in pgp_verify. One caveat, I'm doing my own web worker support, because I also put the AES within the web worker. Also, the random number generate gets initialized with a random number block from a web page, (this will eventually change to initialize the random number generator with multiple sources). Feel free to copy steal whatever. -tim On 5/9/14, Michael Vaughn <[email protected]> wrote: > Does anyone have a workable, client-side-only openpgp.js example that > shows the correct way to perform most functions? Specifically keyring > implementation, decrypting an encrypted key, handling S/MIME... You > know, the proper way for everything? > > I'm doing my best on my own and I'm sure I'm not getting it right. > > The lack of decent learning example is a turn off for people like me who > want to learn the correct way of using openpgp.js > > In return I will post it in its entirety on my site for others to learn > from also. > > Thank You! > _______________________________________________ > > http://openpgpjs.org > Subscribe/unsubscribe: http://list.openpgpjs.org > _______________________________________________ http://openpgpjs.org Subscribe/unsubscribe: http://list.openpgpjs.org

