Posts: 1,355
Joined: Oct 2011
Reputation:
70
Could you not have the values you need as settings for that addon which are then set via the addons settings page.
This way they wouldn't be in the source code, and perhaps more importantly someone else could use your addon and enter their own Twitter credentials.
Posts: 19,982
Joined: May 2009
Reputation:
451
nickr
Retired Team-Kodi Member
Posts: 19,982
Include them as a setting not in the code. Require your users to get their own keys and enter them in settings.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Posts: 40
Joined: Dec 2009
Reputation:
0
(This is weird, I thought I had posted a reply a few days ago. Anyway)
I'm beginning to think what I'm asking is by definition impossible. Were I to use AES encryption, I would still need to store the key to unlock thàt encryption in the plugin code.
Posts: 3,448
Joined: Jan 2011
Reputation:
362
pkscout
Team-Kodi Member
Posts: 3,448
I have API keys for a number of third party sites in Artist Slideshow. I just store the API keys plain text in a configuration routine and don't worry about it. In the three years I've been maintaining AS I haven't had any reports from any of the sites that the key was being abused.
Posts: 40
Joined: Dec 2009
Reputation:
0
Good to know pkscout, thanks for reassuring me.