openpgpjs/openpgpjs — pull request #151 by toberndo (2014-01-13 15:00:18+00:00)
Title: Web Worker

I worked on web worker support. The idea is to load the whole library into a long running worker. The proxy can then be used to call the high level API asynchronously and thereby decouple UI thread and long processes like key generation.

Entropy is seeded to worker on each generateKeyPair() call.

Packet layer supports now serialization and can be used with the messaging API to communicate with the web worker.

The unit tests are so far only active for browsers and PhantomJS.

Tested with Chrome, FF and PhantomJS.