Old 01-08-2006   #1 (permalink)
Yup, that's meee!
 
thecubed's Avatar
 
Join Date: Jun 2004
Location: Infront of my screen (most of the time)
Posts: 89

Send a message via AIM to thecubed Send a message via Yahoo to thecubed Send a message via Skype™ to thecubed
Time sensitive passcodes in PHP

Hello, all!
I would like to know if there was a way to make time sensitive passcodes in PHP.
For example, this passcode would be generated by another PHP script, then given out to the customer to access protected areas of a website.
I am going to use this for a remote support feature for my clients, so that I don't have a bunch of people abusing my support program and network.

I know that I could probably just use a mysql database/PHP script that generates a key, saves it to the database, then when user logs in, it verifies it against the passcodes in the database by time and stuff...
But, if it's possible to make a time sensitive passcode in PHP, could someone lead me in the right direction

Thank you very much!
__________________

www.thecubed.com <--- TheCubed Homepage!
thecubed is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 01-09-2006   #2 (permalink)
Yup, that's meee!
 
thecubed's Avatar
 
Join Date: Jun 2004
Location: Infront of my screen (most of the time)
Posts: 89

Send a message via AIM to thecubed Send a message via Yahoo to thecubed Send a message via Skype™ to thecubed
A clarification to what I mean is like this:

* A PHP script generates a password using some algorhythm that encodes
the time into the password, and an example output would be
something like 7703938 which would be the time encoded with a secret
value.
* then another PHP script decodes the password using the reverse algorhythm
and compares the encoded time with the current time and then allows the
user to see the protected resource.

I guess this falls more under the category of cryptography, because what I really need is an algorhythm to encode the time and a key into a password, and another algorhythm that extracts the encoded time from the password and compares it with the current time and expiration time.
An example of this would be a SecurID card, which generates random PINs based on the time and a secret key.
What I'm looking for is something like that, because I need some kind of time sensitive login application to protect my support network from being abused.

Sorry if none of this makes sense, my head is never not jumbled

Thanks for your time.
__________________

www.thecubed.com <--- TheCubed Homepage!
thecubed is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pro's and Con's to Upgrading PHP pipersdragon HTML / PHP / ASP / JS 1 12-29-2005 11:43 PM
PHP date function skirmish HTML / PHP / ASP / JS 1 12-18-2005 11:40 PM
PHP Tutorial Trio! Man1c M0g Announcements 3 07-09-2005 09:15 AM
Attempting brain surgery in spare time $alan Introductions 8 05-17-2005 06:47 PM
Digital's Quick and Dirty Guide to PHP Order HTML / PHP / ASP / JS 15 05-05-2004 01:18 AM


All times are GMT +1. The time now is 11:47 AM.
Content Relevant URLs by vBSEO 3.2.0

Design & Content © BioRUST 2007 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT