/    Sign up×
Community /Pin to ProfileBookmark

verification code

I’m buildding a php website with member area I want to let them see my files but no body can download without verification code and I will sell this code

so I want a script or an idea to script that can help me to
generate unique code or numbers
save it in database
the code shoulde be some thing that nobody can

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@jignesh1Nov 26.2006 — u could have them encrpty the verification code different from the password

u could do is sha1() or md5()
Copy linkTweet thisAlerts:
@cabab2020authorDec 08.2006 — thank u for replay but this will not solve may problem and mabye I'm wrong to said verification code what I need activation code

in other word what I want is management system for prepaid card .Exactly same like most mobile operator uses. Holding a 12-16 digit number or less with a value and expiry date.....

and connect this system to mysql db in my website to activate membership like prepaid card that used in mediaring phone service
Copy linkTweet thisAlerts:
@cabab2020authorDec 12.2006 — any bidy can give me an idea plz :o
Copy linkTweet thisAlerts:
@theRamonesDec 13.2006 — 
  • 1. generate random activation code, by concat all random events or information, such as: date, time and ip address when user registered, server status, amount of free memory server, etc.

    2.use this value to be the seed of pseudo random generator (such as cryptographically secure pseudo-random number generator or anything else)

  • 3. or u can hash this (1) value using md5() or sha1() built in function on php, and substring it to the length u want..(this not so secure, i'm not rely on this method and not recomend this)

    4.store this value on database, with addon expire date on each value.


  • what u ask is all about applied and implementing cryptograpi on real application, for more information and learning, i suggest book:

    Applied Cryptographi, by Bruce Schneier
    ×

    Success!

    Help @cabab2020 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 5.8,
    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: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

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

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...