in reply to prob w/ gatekeeper subroutine
This is not directly related to your problem, but may I suggest hashing your passwords?
if ($hasheduserpass{$euser} eq hashfunction($epass)) { ... }
Unless you need the unencrypted password elsewhere in the program (may I suggest, then, that you evaluate why you need it), you should not store your user's passwords in the clear. At least in my opinion.
Update: OTOH, if this is an assignment, as it appears it could be, hashing is probably not appropriate. Remember the above advice (and not just for passwords, but for any information that you only use for validation) once you get beyond classroom assignments.
--MidLifeXis
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: prob w/ gatekeeper subroutine
by weglarz (Novice) on Sep 29, 2010 at 17:13 UTC | |
by Anonymous Monk on Sep 29, 2010 at 17:21 UTC | |
by halfcountplus (Hermit) on Sep 30, 2010 at 01:11 UTC |