As I learned in a previous post, Google Apps Script doesn't have any utilities, services or existing libraries to execute RSA encryption/decryptions:
I added a new class to my Apps Script project based on a JavaScript library for RSA. It works, but always reach the 30s execution time limit with normal RSA key sizes. If I use a key size bigger that 384 bits, the script always get a timeout. 384 bits encryption take almost 6 sec, and decryption take more than 20 sec.
How can I achieve my goal and bypass the 30 sec execution limitation? Is there a way to increase the CPU and memory resources for my script, or any useful suggestion to improve performance for encryption and decryption?
Maybe a background job could be use to encrypt and decrypt content, but I found nothing on that for Gmail Add-ons