3

Possible Duplicate:
How to open-source an application that uses API keys

I'm creating an application that uses a personal API key. How can I open source the application?

Possible Duplicate: How to open-source an application that uses API keys

I guess now my question is, which is a good option to use?

Community
  • 1
  • 1
Sergio Tapia
  • 40,006
  • 76
  • 183
  • 254

2 Answers2

4

Make the API key a configuration item so that it can be specified by the person using the code rather than having it hard-coded within the source.

John Topley
  • 113,588
  • 46
  • 195
  • 237
1

Mask the key in the application with instructions that the user should get his own key. Would be best if this configurable from a config file or UI.

It may also be good to have a screen demo of the application, so the target audience knows how it is suppose to behave when they put in their own key.

Shoan
  • 4,003
  • 1
  • 26
  • 29