How to Remove Salt function in joomla 1.5
its very simple
root\joomla\libraries\joomla\user
helper.php
remove this code in line no 284
$salt = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
To
$salt = '';
How to Remove Salt function in joomla 1.5
- arjuninfo
- Joomla! Enthusiast
- Posts: 113
- Joined: Sat Aug 08, 2009 12:50 pm
- Location: India ,chennai
- arjuninfo
- Joomla! Enthusiast
- Posts: 113
- Joined: Sat Aug 08, 2009 12:50 pm
- Location: India ,chennai
Re: How to Remove Salt function in joomla 1.5
Another thing goto
root\joomla\libraries\joomla\user
user.php (in line 400 to 410)
Replace
$salt = JUserHelper::genRandomPassword(32);
$crypt = JUserHelper::getCryptedPassword($array['password'], $salt);
$array['password'] = $crypt.':'.$salt;
To
$salt = JUserHelper::genRandomPassword(32);
$crypt = JUserHelper::getCryptedPassword($array['password'], $salt);
$array['password'] = $crypt;
And in line around 430 to 450
again change this line Replace
$salt = JUserHelper::genRandomPassword(32);
$crypt = JUserHelper::getCryptedPassword($array['password'], $salt);
$array['password'] = $crypt.':'.$salt;
To
$salt = JUserHelper::genRandomPassword(32);
$crypt = JUserHelper::getCryptedPassword($array['password'], $salt);
$array['password'] = $crypt;
------------------------------------------------------------------------------------
root\joomla\libraries\joomla\user
user.php (in line 400 to 410)
Replace
$salt = JUserHelper::genRandomPassword(32);
$crypt = JUserHelper::getCryptedPassword($array['password'], $salt);
$array['password'] = $crypt.':'.$salt;
To
$salt = JUserHelper::genRandomPassword(32);
$crypt = JUserHelper::getCryptedPassword($array['password'], $salt);
$array['password'] = $crypt;
And in line around 430 to 450
again change this line Replace
$salt = JUserHelper::genRandomPassword(32);
$crypt = JUserHelper::getCryptedPassword($array['password'], $salt);
$array['password'] = $crypt.':'.$salt;
To
$salt = JUserHelper::genRandomPassword(32);
$crypt = JUserHelper::getCryptedPassword($array['password'], $salt);
$array['password'] = $crypt;
------------------------------------------------------------------------------------
M.Arjun
- arjuninfo
- Joomla! Enthusiast
- Posts: 113
- Joined: Sat Aug 08, 2009 12:50 pm
- Location: India ,chennai
Re: How to Remove Salt function in joomla 1.5
look at this screenshot
You do not have the required permissions to view the files attached to this post.
M.Arjun
- mark_up
- Joomla! Guru
- Posts: 849
- Joined: Sun Oct 29, 2006 10:51 am
- Location: Fiji
- Contact:
Re: How to Remove Salt function in joomla 1.5
A most informative post arjuninfo, thank you very much.
I wonder though, why would you want to do this? Why reduce the security that Joomla currently offers?
I wonder though, why would you want to do this? Why reduce the security that Joomla currently offers?
http://twitter.com/mark_up.
Opinions expressed are mine alone and don't necessarily represent the views of any organisation I am associated with.
Opinions expressed are mine alone and don't necessarily represent the views of any organisation I am associated with.
- arjuninfo
- Joomla! Enthusiast
- Posts: 113
- Joined: Sat Aug 08, 2009 12:50 pm
- Location: India ,chennai
Re: How to Remove Salt function in joomla 1.5
GollumX wrote:A most informative post arjuninfo, thank you very much.
I wonder though, why would you want to do this? Why reduce the security that Joomla currently offers?
Please check this post ,,,,then u will know why i posted this topic ...
http://forum.joomla.org/viewtopic.php?f=304&t=448432
M.Arjun
- mark_up
- Joomla! Guru
- Posts: 849
- Joined: Sun Oct 29, 2006 10:51 am
- Location: Fiji
- Contact:
Re: How to Remove Salt function in joomla 1.5
Thanks
http://twitter.com/mark_up.
Opinions expressed are mine alone and don't necessarily represent the views of any organisation I am associated with.
Opinions expressed are mine alone and don't necessarily represent the views of any organisation I am associated with.
- selvaganeshj
- Joomla! Apprentice
- Posts: 11
- Joined: Fri Oct 09, 2009 8:58 am
- Location: Chennai, Tamilnadu, India
Re: How to Remove Salt function in joomla 1.5
Hi Arjuninfo,arjuninfo wrote:GollumX wrote:A most informative post arjuninfo, thank you very much.
I wonder though, why would you want to do this? Why reduce the security that Joomla currently offers?
Please check this post ,,,,then u will know why i posted this topic ...
http://forum.joomla.org/viewtopic.php?f=304&t=448432
I saw the post which you linked here.
i think there is no need to remove the salt to add the old password functionalities.
we can use the JUserhelper calss to check the old password.
Best Regards,
SelvaG
SelvaG
- ooffick
- Joomla! Master
- Posts: 11615
- Joined: Thu Jul 17, 2008 3:10 pm
- Location: Ireland
- Contact:
Re: How to Remove Salt function in joomla 1.5
Mod Note: Moved to Core Hacks Forum
Olaf Offick - Global Moderator
learnskills.org
learnskills.org