>> password stored with reversible encryption

Discuss phpwcms here, please do not post support requests, bug reports, or feature requests! Non-phpwcms questions, discussion goes in General Chat!
Post Reply
svobi
Posts: 11
Joined: Fri 21. Nov 2003, 17:40

>> password stored with reversible encryption

Post by svobi »

hello

it seems like you already changed stuff with password handling,
when i read this thread.

but i think it's a very bad idea, to store passwords in a reversible format in the database.

the mysql manual has already be quoted in this thread, so i will to:
ENCODE(str,pass_str)
Encrypt str using pass_str as the password. To decrypt the result, use DECODE(). The results is a binary string of the same length as string. If you want to save it in a column, use a BLOB column type.

DECODE(crypt_str,pass_str)
Descrypts the encrypted string crypt_str using pass_str as the password. crypt_str should be a string returned from ENCODE().
i know, the crypted string is protected by a password, but how do you manage this ? hardcoded password for crypting with ENCODE or configurable one ?

from the other available methods in mysql MD5, SHA, AES & DES the most compatible one would be MD5.

with php functions it could be done without the need for mysql 4.x.x or mysql with SSL-support, but the mcrypt & mhash extensions are not the standard.

so when you already have a solution with crypting the password on clientside with SHA and then validate it with a php function (no mcrypt or mhash) on login serverside it would be nice.

but since you already require a relatively new php, one could use the sha1 function available since php 4.3.0

could you post your clientside solution ?
greets svobi

----------------------------------------
http://www.swisswebgroup.com/
http://www.serverspace.ch/
----------------------------------------
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

This is what I have created - but IT IS NOT SUPPORTED AND NOT RECOMMEND:
http://www.phpwcms.de/docu/patch_sha1-l ... 1-2003.zip

I have to think about another solution - the ENCODE solution is one that's easy to implement. The javascript based is not really what I want to have.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
svobi
Posts: 11
Joined: Fri 21. Nov 2003, 17:40

Post by svobi »

ok we let us surprise what you will hack.

:D
greets svobi

----------------------------------------
http://www.swisswebgroup.com/
http://www.serverspace.ch/
----------------------------------------
Post Reply