Decrypt agent and customer passwords
Moderator: crythias
-
- Znuny newbie
- Posts: 5
- Joined: 08 Sep 2011, 07:58
- Znuny Version: 3.0.4
Decrypt agent and customer passwords
In my application i have a login page for agents and customers, for this i need to compare username and password of agents and customers, but passwords are in encrypted form in database. How to decrypt those passwords so i can compare them with those entered by agents and customers while logging in.
-
- Znuny expert
- Posts: 241
- Joined: 06 Feb 2009, 11:15
- Znuny Version: 3.0.x
- Company: Perl-Services.de
- Contact:
Re: Decrypt agent and customer passwords
Mostly the passwords are not encrypted but hashed. So there is no way to get the original password (except brute-force). You should compare the hashed values as MD5('password') equals MD5('password') 

Need a Perl/OTRS developer? You can contact me at info@perl-services.de
-
- Znuny newbie
- Posts: 5
- Joined: 08 Sep 2011, 07:58
- Znuny Version: 3.0.4
Re: Decrypt agent and customer passwords
Thanks renee for the reply.
what hash or salt is used in md5.
Original password: root hashed password: roK20XGbWEsSM
Original password: otrs@1234 hashed password: $1$209924$qXbOh.KLHIUaZHR9k0Ued.
how are these hash generated.
what hash or salt is used in md5.
Original password: root hashed password: roK20XGbWEsSM
Original password: otrs@1234 hashed password: $1$209924$qXbOh.KLHIUaZHR9k0Ued.
how are these hash generated.
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Decrypt agent and customer passwords
It might be better to use the API (see http://dev.otrs.org ) and let OTRS handle the auth.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny newbie
- Posts: 5
- Joined: 08 Sep 2011, 07:58
- Znuny Version: 3.0.4
Re: Decrypt agent and customer passwords
Thanks crythias