LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-12-2004, 10:15 PM   #1
linuxharsha
LQ Newbie
 
Registered: Dec 2003
Location: Bangalore,India
Distribution: Red Hat 7.3,8.0,9.0 United1.0 SuSE7
Posts: 22

Rep: Reputation: 15
Exclamation What is MD5 encryption used in Linux?


Hi all,
what is MD5 encryption used in Linux?

I use RedHat 9.0. What happens if I deselect the "use(enable) MD5 encryption" option during the installation of RedHat Linux?

Is there any way that I can decrypt an MD5 password? Because, I want to write a simple JAVA application that lets a user login the RedHat system. Is that possible? Can anybody help me in this regard?

Thank you,
Harsha.
 
Old 01-12-2004, 11:35 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
MD5 is just a replacement for DES as the password hashing mechanism. No, you cannot decrypt MD5 hashed values, that's the whole point! If you could, it would make password hashing worthless.

What you can do is take user input and MD5 it, then compare that to the hash in /etc/shadow. You do need to be root to read /etc/shadow, though. I sure wouldn't recommend running any Java apps as root.
 
Old 01-12-2004, 11:40 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The MD stands for Message Digest. It is a way of authenticating that the RPM files haven't been altered. It would be very difficult for someone to alter a file and have it produce an identical MD5 signiture.
 
Old 01-13-2004, 02:03 AM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Quote:
It is a way of authenticating that the RPM files haven't been altered.
It's used for a lot more than RPM validation. I'm very certain the message he was asking about relates to the shadow password hashing any way, not to RPM validation. In any case, MD5 is just a cryptographical checksum hashing algorithm.
 
Old 01-13-2004, 08:25 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
My bad!

I thought that the option he was talking about, was whether md5 sums were verified during the install process (such as a network install), rather than whether they were used by a PAM module. It seemed to me like a two part question.

I suppose that the best general advise on his password question is to use the best standard method of authentication, and don't monkey with it unless you are a security expert, who knows that you are not introducing problems. Someone a lot more knowledgeable then myself.

Last edited by jschiwal; 01-13-2004 at 08:27 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Linux iso md5 install HankReardenJr Linux - Software 9 10-27-2005 11:00 AM
Password Encryption After MD5 Deprecation ombill Fedora 1 08-22-2005 05:16 PM
Cram-MD5 encryption pembo13 Linux - Security 5 04-30-2004 03:05 PM
Linux and MD5 hashing GAVollink Programming 0 06-04-2003 01:12 PM
Mandrake 9.0 Wireless Works without encryption.. does not with encryption topcat Linux - Wireless Networking 3 05-04-2003 08:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration