By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,746 Members | 1,928 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,746 IT Pros & Developers. It's quick & easy.

Login Module

P: n/a
I would like to create a login module using php without a mysql
backend. I'd just want to save the data in an encrypted file. Any
pointers would be helpful.
Sep 11 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On Thu, 11 Sep 2008 03:21:42 -0700, anush wrote:
I would like to create a login module using php without a mysql backend.
I'd just want to save the data in an encrypted file. Any pointers would
be helpful.
What have you tried so far?

You don't give any hints as where you want to start and what you already
know. Have you managed to install PHP succesfully? Do you know how to
create a form? Do you know how to read and write files in PHP? Do you
know anything about encryption?
Sep 11 '08 #2

P: n/a
On Sep 11, 4:18 pm, Sjoerd <sjoer...@gmail.comwrote:
On Thu, 11 Sep 2008 03:21:42 -0700, anush wrote:
I would like to create a login module using php without a mysql backend.
I'd just want to save the data in an encrypted file. Any pointers would
be helpful.

What have you tried so far?

You don't give any hints as where you want to start and what you already
know. Have you managed to install PHP succesfully? Do you know how to
create a form? Do you know how to read and write files in PHP? Do you
know anything about encryption?
Yep, I do.
-
A

Sep 11 '08 #3

P: n/a
On Thu, 11 Sep 2008 04:29:13 -0700, anush wrote:
>What have you tried so far?

You don't give any hints as where you want to start and what you
already know. Have you managed to install PHP succesfully? Do you know
how to create a form? Do you know how to read and write files in PHP?
Do you know anything about encryption?

Yep, I do.
I figure you are not really a talkative kind of guy.

You could store usernames and sha1 checksums of the password to a file,
one entry per line.
Sep 11 '08 #4

P: n/a
On Sep 11, 3:10*pm, Sjoerd <sjoer...@gmail.comwrote:
On Thu, 11 Sep 2008 04:29:13 -0700, anush wrote:
What have you tried so far?
You don't give any hints as where you want to start and what you
already know. Have you managed to install PHP succesfully? Do you know
how to create a form? Do you know how to read and write files in PHP?
Do you know anything about encryption?
Yep, I do.

I figure you are not really a talkative kind of guy.

You could store usernames and sha1 checksums of the password to a file,
one entry per line.
Or put those in a PHP array somehow and store the json_encode result
of that array. That format is pretty fast to parse and store, and
gives you a no-hassle access to the data. Make sure you store
checksums of the passwords only.

Egbert
Sep 11 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.