How can we store data securely in google when developing Gmail addon using Google app script?

Viewed 471

I am creating a Gmail addon, my doubt was how can I save some secure and confidential information on Google side so that I can use it later in my code. Does Google provide some kind of secured storage mechanism?

2 Answers

You can use app script's PropertiesService, it allows to store some unique information for scripts, attached to the script itself or the files the script is bound to. This site provides further explanation and examples on how to use the service.

If you're talking about Google Cloud, you can check this documentation about Local File Storage Security.

Also, Apps Script offers Cache Service that allows you to access a cache for short term storage of data:

  • Public caches are for things that are not dependent on which user is accessing your script.
  • Private caches are for things which are user-specific, like settings or recent activity.
Related