📄 readme.md5_passwords
字号:
MD5 Patches - Version 0.1 (1999-01-29)This release includes support for MD5-hashed password storage, as opposedto cleartext. To get started, you'll need to change all your authentication classes/ page_open's to something like that in Example_Challenge_Crypt_Auth (seelocal.inc).You will also need to create the auth_user_md5 table. I've decidedto use a different table than auth_user to allow for some things thataren't necessarily compatible and so you can play around until makingthe big switch. There's a MySQL script to create the table, it'sstuff/create_auth_md5.mysql. The script creates the kris/test accountas well.I've included a ultra-simple PHP script to migrate your old passwordtable to the new one by hashing the passwords. That's instuff/migrate_to_md5.php3. You'd best copy it to wherever you keepyour other PHP3 scripts, and run it after setting up PHPLIB. It waswritten for MySQL, but it's generic enough to probably run anywhereyou need to.The new challenge-response login page is php/crcloginform.ihtml. Youmight want to modify it to look more like your site.I've hacked the new_user.php3 into a MD5-storage-compliant versionthat doesn't send your password in cleartext along the wire. The newversion is in pages/admin/new_user_md5.php3.I do not claim that this in invulnerable to attack. In fact, I canthink of one right now. When you change your password, the MD5-hashof your PW is transmitted down the wire. An enterprising cracker couldmanage to fake a login form and supply the page with the MD5-hashedpassword, which would then authenticate them. This is bad. If youneed security you should consider running SSL or no webserver at all.I looked into public-key encrypting the form response when changingpasswords. Doing pk encryption in JavaScript looks like it is goingto be extremely painful or very weak encryption (or both). My planfor 0.2 is to have a Java class to do the encryption and to perhapsmake a PHP C extension to decrypt the message. Please let me know what you think, and changes/fixes/corrections areappreciated!Good luck,Jim<jim@jimz.com>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -