We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Password Encryption Place [Solved] | Forum

Topic location: Forum home » Support » General Questions
Daniel Prado
Daniel Prado Jul 12 '14
Hi guys,


I just recently update form oxwall 1.6 to oxwall 1.7 but I had to make a fresh install in a new folder in my server.


After get everything working I tried to link the new installation with my old database and everything worked fine but users passwords, it seems that the new installation uses a different encryption than the old.


Is there any way to modify the encryption of the new installation to work as the older one?


Thanks in advance.

The Forum post is edited by ross Jul 15 '14
Daniel Prado
Daniel Prado Jul 12 '14
I found it, 


If anyone more need it the encryption rule can be found in /ow_include/config.php


:D

ross Team
ross Jul 14 '14
Yes, it is Salt, you members need to restore your password in this case. 
Daniel Prado
Daniel Prado Jul 15 '14
Well, you only have to copy your old encryption key from your last backup and your users don't need to do anything.
Pete
Pete Jul 15 '14
you should have downloade you config file to upload after your new install,before you did your new install.All your member well now have to click on forgot password so they can set up a new one
The Forum post is edited by Pete Jul 15 '14
Daniel Prado
Daniel Prado Jul 15 '14
Yes, of course, I mean, I have a Backup of my site and I copied the old encryption, so fo me it´s solved.


Thanks both.

ross Team
ross Jul 15 '14
Ok, great!
Stephna
Stephna Aug 10 '15
I have tried it but doesnt reflect properly.  Someone please help me...


This is my salt value from config.php define('OW_PASSWORD_SALT', 'xEHNxiEXdz7GK');


When i enter the password as 31121993Aa from signing up it generates 82416b9973e6fc2279f8e2c54eae6c0d555eae5ad1760985ce1a65b1139c0320 


But when I create a custom sign up page which inserts data into this table and I use the same password i.e 31121993Aa and I get db57e80826fd86d6b00aebf21b34d1c382e123d17a02a1d008ced708af81441e when i use this code in my php


$username=$_POST['username'];$password=$_POST['password'];$salt = 'xEHNxiEXdz7GK';$pass = "password";$hashit = hash('sha256',$salt.$pass);$password1=$_POST['password1'];mysql_query("INSERT INTO oxwa_base_user(username,password,password1,email)VALUES('$username','$hashit','$password1','$mail')");




Please help me....

Taissa Team
Taissa Aug 11 '15
Stephna, please click this link to see the answer: http://www.oxwall.org/forum/topic/13705?page=1#post-156994. Don't duplicate your questions.
The Forum post is edited by Taissa Aug 11 '15