vermiculus / sx.el

Stack Exchange for Emacs
http://stackapps.com/q/3950
709 stars 40 forks source link

access_token encryption #355

Open Pitometsu opened 6 years ago

Pitometsu commented 6 years ago

How can I store access_token customization in *.el.gpg file (see: epa-* functions)?

vermiculus commented 6 years ago

That's saved with sx-cache-set, so if you look in that implementation, you'll see we use sx-cache-get-file-name to turn 'auth into "auth.el" inside sx-cache-directory.

You can patch that function to encrypt it for the 'auth symbol.

It might be worth an enhancement to introduce an option to use auth-source instead, but I won't get to that any time soon.