Any known library for PGP encryption working in N...
# suitescript
a
Any known library for PGP encryption working in NetSuite server-side? The OpenPGP library only works client side as far as I know and their documentation shows.
b
documentation shows support for node and browsers
a
You are totally right I missed that, I need to test it now...
Copy code
const openpgp = require('openpgp'); // use as CommonJS, AMD, ES6 module or via window.openpgp
Thanks.
b
its much harder than that
it no longer supports amd, so you have to use a require configuration, and you have to polyfill a bunch of the browser related apis
a
Do you know if there is a public polyfill available somewhere?
b
i dont think there is a public one lying around
m
openpgp.4.10.9.js,openpgp.worker.js
🔥 2
💯 1
cigar 1
mindblow 1
🍻 1
🍾 1
a
@michoel Thank you so much...