Hi.
Since it would freeze when generating big keys i would recommand you to use
a webworker.
var wProxy = new openpgp.AsyncProxy('resources/js/pgpwebworker.js');
wProxy.seedRandom(10);
wProxy.generateKeyPair(1, 2048, "peter pan", "passphrase", function
(err, data) {
console.log(arguments);
});
where 'resources/js/pgpwebworker.js' is the path to the webworker file of
openpgp-js
greetings,
christian
On Mon, Feb 24, 2014 at 3:59 PM, J Bc <[email protected]> wrote:
> Hello.
> Sorry for the question.
> Can i see a simple example, where opengpg js generates key pair in the
> client side?
> Thank you.
> _______________________________________________
>
> http://openpgpjs.org
> Subscribe/unsubscribe: http://list.openpgpjs.org
>
_______________________________________________
http://openpgpjs.org
Subscribe/unsubscribe: http://list.openpgpjs.org