you could use the rest-API (if enabled). Just add "/rest/api/2/project" to your jira url. You'll get all information on all projects you have access to. You need to parse the information to get only the project keys but i'll leave that up to you.
The url should look something like http://myjira.de/rest/api/2/project
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG