/    Sign up×
Community /Pin to ProfileBookmark

Looking for a download key generation/authentication script

I’m not sure if Javascript is the right forum for this but here goes. I’m working on a site for a software company. They would like qualified users to be able to download a demo copy of the software from their web site. I’ve built a form the user would fill out and submit to request a download key. The form needs to email an administrator (so they can get the user’s contact info for follow-up) AND generate an email to the user with a randomly-generated key or password and a link to the download page. The user would enter the key, click the Submit button, and be directed to a page where they can download the demo. So, the script needs to generate the key and be able to authenticate it when the user submits it. The key would only be valid for a certain amount of time — say 48 hours — so it can’t be used over and over. The client doesn’t want one standard password to be used because they don’t want users giving it out to other people — they want to capture contact info for whoever is requesting to download the demo so that Sales can follow up.

Is there a tool or script that does this, and is it something that can be plugged into the existing html page? I’m not even sure what to call it. I’ve done Google searches for things like “secure key generator” but I’m not finding what I’m looking for. Can this be done by Javascript or do I need a different solution? Is it more complex than just plugging in a chunk of code and changing a few parameters? If anyone can point me in the right direction, I would appreciate it.

Thank you.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@JMRKERNov 12.2014 — Javascript is not a very secure environment for anything.

You might get more relevant answers by posting the question to the PHP or database forums.
Copy linkTweet thisAlerts:
@ArcologicauthorNov 12.2014 — Will do. Thank you.
×

Success!

Help @Arcologic spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...