Hi, I need to use private keys on a node.js application. The problem is that the method key~Key.decrypt is synchronous and it generates a blocking.
In client-side application I did that with a Async proxy: var getWorker = function () { return new OpenPGP.AsyncProxy(config.worker_path); }; ... var worker = getWorker(); // ... worker.decryptKey(key, password, function (err, decryptedKey) { if (err) return cb(err); // .... cb(null, decryptedKey); }); Is There a right way to do that on node.js? Thnxk -- Exos ~ (>‿◠)✌ Linked'in: http://www.linkedin.com/in/ogexos Twitter: @exos, Indeti.ca: @exos Cel: [+54 9 11] 6133-2442 -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/IT d-- s++:* a- C+++$ UBL+++$ P(-) L+++$ !E--- W+++$ !N !o K-? !w--- !O !M-- V? PS+++@ !PE Y+(++) PGP++ !t--- !5 X++ R(+) tv--(!) b- DI D-- G e@ h>++ r--- y*>+++++ ------END GEEK CODE BLOCK------
_______________________________________________ http://openpgpjs.org Subscribe/unsubscribe: http://list.openpgpjs.org