Forums
This topic is locked
password encryption
Posted 14 Nov 2001 04:49:10
1
has voted
14 Nov 2001 04:49:10 Michael Davis posted:
I'm using the User Authentication extra extension with ImpAKT. Great extension by the way!One question, I have not been able to get any encryption method to work except crc32. Has this been reported by anyone else? The crc32 method works fine, I don't understand why the others don't.
Also, which method is best? I'm new to all this.
TIA
Replies
Replied 15 Nov 2001 23:32:08
15 Nov 2001 23:32:08 Tim Green replied:
All of the other encryption methods (MD5 and DES-encrypt) are standard PHP functions. If these aren't working (does their use give you an error?) then you might need to look at your version of PHP.
For a simple test, try entering a code block such as:-
<?php echo md5("This is MD5 encryption" ?>
or
<?php echo crypt("This is DES-Encrypt" ?>
make sure these blocks are within the <body> tags. When viewing the page, if an actual string of whatever is output then the functions work correctly, and instead it could be their useage that is wrong. The other thing to note, is that if you are storing values encrypted with these methods you need to ensure that the relevant field in your database is long enough to accomodate the string.
Often this is where the problem lies.
Hope this helps <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>
Tim Green
Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
For a simple test, try entering a code block such as:-
<?php echo md5("This is MD5 encryption" ?>
or
<?php echo crypt("This is DES-Encrypt" ?>
make sure these blocks are within the <body> tags. When viewing the page, if an actual string of whatever is output then the functions work correctly, and instead it could be their useage that is wrong. The other thing to note, is that if you are storing values encrypted with these methods you need to ensure that the relevant field in your database is long enough to accomodate the string.
Often this is where the problem lies.
Hope this helps <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>
Tim Green
Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
Replied 16 Nov 2001 21:26:09
16 Nov 2001 21:26:09 Michael Davis replied:
Yep, turns out that increasing the length of the password field solved the problem.
Thanks Tim!!
Thanks Tim!!
Replied 18 Nov 2001 01:13:59
18 Nov 2001 01:13:59 Tim Green replied:
Pleasure <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Tim Green
Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
Tim Green
Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>