Hi all! I saw a little while back that some peopl...
# suitescript
l
Hi all! I saw a little while back that some people had success using openpgp.js with SuiteScript, but I can't find the thread on it anymore. Would anyone mind sharing their experience with this, some known issues etc. Cheers!
b
use suitescript 2.1 (beware unhandled rejected promises)
expect to polyfill missing globals
notable things to polyfill are atob, btoa, crypto.getRandomValues
easier things to replace are navigator.userAgent and the global self, which are used to make sure that the node specific code is not used
beware performance issues, suitescript has never been fast, so beware timeout or execution count limits when working with actual files
l
Love your work @battk, thank you for this info!!
m
message has been deleted
🙏 1
👍 1
l
Awesome @michoel, thank you so much
e
This should be a blog post somewhere
b
my warnings at the beginning should scare you about the reliability of this
e
Fair enough. I've seen it asked a few times, that's all
b
ive only tested this to see how feasible it is, and my personal conclusion was that its safer to do this outside of netsuite