![]() |
Updated 15th July 2001
Simplish hack that allows end users to chose if they want to store encrypted versions of their password. Full details of how this is implemented are contained in the file. Requirements: vBulletin 2.0.0 This has not been tested on rc1/2/3 beta1-5. It might work or it might not. From the june 3rd update onwards a installation script is included, full details in the instructions. |
I'll have to check this out, but it sounds very interesting :)
|
this is auctually really good. it would be a lot better if vBulletin came with this. I hate people that just use phpMyAdmin and look at your passwords.
|
sweet!!! :D
|
We will consider switching to encrypted passwords in the future.
|
Quote:
|
plain text passwords is the only reason why i have to memorize so many different passwords for each vB i sign up with.
|
Quote:
|
dabean can you explain exactly to me how i do this part
ALTER TABLE user ADD encryptedpass SMALLINT DEFAULT '0' not null CREATE TABLE passgen (requesthash char(32) NOT NULL, userid int(10) unsigned DEFAULT '0' NOT NULL, requestedtime int(10) unsigned DEFAULT '0' NOT NULL) :confused: |
Just a suggestion - stick your instructions and this file into a zip and put it up instead of just your text file. It's MySQL made easy. :D
Rename this file to dbencrypt.php, stick it in your admin directory and go to it in a browser - login like you would to your Admin CP and then it'll do the queries and link you to your Admin CP. |
does the dbencrypt.php do all the table altering and replacing of the other php files for me
|
Updated: (15:05 BST)
Improvements: - Database update script, delete it after using it. Thanks tubedogg but i'd already writen my own to go with this improved version. - Encypted passwords option at registration Bug fixes: - Members can no longer follow a password regeneration link more than once. |
i ran the encyption file but i dont see any make password encrypted field on registering
|
As the text file "password_encryption.txt" contained in the zip states all the installer does it make the database changes for you. You still have to modify the code and templates by following the instructions in the file.
|
ok something wrong is going on here when ever i edit my member.php file the way you say i get this error when i try to access my change password, edit options or any thing else that has to do with the user profile and this is the error
Fatal error: Call to undefined function: getuserinfo() in /home/photo/public_html/tmbps/member.php on line 101 and here is line 101 on member.php PHP Code:
|
hmm, you've obviously made a mistake in altering the code.
the following lines should exist starting at line 47. PHP Code:
If you'd made any changes to global.php or admin\functions.php as part of any other hacks you have added you may also want to double check them. |
there at line 42 right after
// ############################### start login ############################### here is what the code looks like for that section tell me if anything needs to be switched PHP Code:
|
hmm you've repeated the same block of code twice.
PHP Code:
PHP Code:
|
now i am getting this erorr
Parse error: parse error in /home/photo/public_html/tmbps/member.php on line 1370 and here are lines 1366-1370 PHP Code:
|
okay take a look at
PHP Code:
|
it wasnt even there let me see what happens when i add it
|
i put it in but it still comes up with the erorr and with the line number of with ? > in it also this ? > is not above the security e-mail
|
hmm not sure exactly where you have gone wrong then.
|
in your instructions you have:
Quote:
this change will fix it: Quote:
|
this works great with the exception of in the user cp... the Secure password storage is not selected to yes or no by default and even if you select yes, it does nothing to the db... :confused:
it is encrypting passwords for new users taht select to have encrypted passwords from the start though (they can't unencrypted them like you noted though). |
Find
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
what file is that for??? member.php???
|
member.php
|
Quote:
|
it now encrypts the password (like it should) however the bullet in the user cp does not reflect this...
|
Quote:
|
Quote:
|
Am I to understand that anyone can see anyone's password without the encryption?
What other security holes are there in vBB? |
Quote:
and it is VB not vBB :) |
Quote:
|
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/atrl/public_html/forums/member.php on line 139 is the error i get what do i do?
|
from the php manual "parse error, expecting `T_STRING' or `T_VARIABLE' ..." Generally that type of error is caused by the echo function, how ever as my code fragment doesn't use this particular function it is probibaly some other hack or modification you've made.
http://www.php.net/manual/en/function.echo.php Read the User Contributed Notes. |
this is indeed very cool, and i have set it up on my site. one caveat, though.
should a user ever decide to go back to a non-encrypted password, this is not provided for. there of course is the option to select 'no' in the user template, but this has no effect on the stored password in the database. i may just be ignorant, but i don't know of a way to un-MD5 a password hash. any ideas? otherwise i'll just change the template and remove the 'no' option for encrypted passwords, stating that it's an irreversable option. |
Though I have not looked at this particular hack, MD5 is a hashed-asymetric encryption that is not reversable.
You cannot take the MD5 hash and turn it back into the plain text password. -t |
Quote:
|
All times are GMT. The time now is 07:48 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|