views:

42

answers:

2

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

Possible Duplicate: http://stackoverflow.com/questions/1983990/how-to-open-source-an-application-that-uses-api-keys

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

+2  A: 

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
A: 

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