LinuxQuestions.org
Review your favorite Linux distribution.
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-2009, 02:22 PM   #1
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57
Can I change the default algorithm for password encryption


Hey everybody,

I assumed that most linux distros use the MD5 algorithm for password encrytions.

How simple or difficult will it be to use a better algorithm such as blowfish or other algorithm. Will there be any compatibility issues?

My primary usage of linux is on the desktop. If you feel MD5 is adequate, let me know.

- Thanks
 
Old 01-12-2009, 03:11 PM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
MD5 is sufficient unless you are doing top secret defence contract work! In which case you should consider a Fedora / Red Hat / CentOS setup with encrypted hard disk drives....
 
Old 01-12-2009, 03:47 PM   #3
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Original Poster
Rep: Reputation: 57
Thanks for the reply.

The reason I asked was because I heard of the hacks of MD5 keys. I know the linux community and distros already fixed the problem, but I wanted to be sure if using a better encrytion would be better. I'll stick with the MD5 for now.

Last edited by dv502; 01-12-2009 at 03:49 PM.
 
Old 01-12-2009, 04:11 PM   #4
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
Ah, to be honest you can change the encryption algorithm used, but it would be a hack, and no doubt breakable by someone, probably easier than breaking MD5.

Seriously though, unless your machine is in a public place, you should have no problems. Here is a link that describes the type of attack that MD5 passwords are most susceptible to: http://en.wikipedia.org/wiki/Dictionary_attack. If you ensure that your password contains a word, mix of upper and lower case, symbols, numbers all in a mix, it's very unlikely that it will be broken easily.

I was serious when I suggested encrypted hard drives, if your machine is in a public place, and someone can physically open it, they won't need your password to access your files!
 
Old 01-12-2009, 06:09 PM   #5
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
I'm assuming your concern revolves around MD5 collisions, right? To get his hands on your hashes the attacker would have already either gained root privileges or obtained physical access to your box. Without the hashes in hand, the attacker wouldn't know when a collision was found. So even with collision attacks possible, the risk level remains steady as long as the probability of the hashes falling into the wrong hands remains steady.
 
Old 01-12-2009, 06:54 PM   #6
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Original Poster
Rep: Reputation: 57
My computer is fine.

I was just curious and wanted to know if upgrading from MD5 to blowfish would be better.

I am not running any type of public servers.

- Cheers

Last edited by dv502; 01-13-2009 at 10:34 AM.
 
  


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
Encryption Algorithm for TCP Stack Capere Linux - Networking 2 08-10-2008 12:47 PM
Change the default hashing algorithm used in SSH kskkumar SUSE / openSUSE 2 06-06-2007 03:58 AM
Change Password Hash Algorithm Trano Linux - Security 1 08-23-2005 07:48 AM
encryption algorithm in fedora shivaligupta Programming 10 04-25-2005 01:09 AM
change password encryption to DES? (gentoo) gyost Linux - Security 0 02-15-2005 01:54 PM

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

All times are GMT -5. The time now is 11:22 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