LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-10-2010, 04:47 AM   #1
nikhidet
LQ Newbie
 
Registered: Oct 2010
Posts: 14

Rep: Reputation: 0
what type of password encryption does ubuntu use?


hey,
i encountered some problem here...
it was 2 days i tried to search on internet about what does ubuntu use for encrypting a password?
i tried with md5 hash generator and i did try with des generator..but the encrypted password that was produced by these two generator is not the same as mine..
one more questions?
i read on internet,if in etc/shadow,there is $1$ before our encrypted password,it means the password is encrypted by using md5.
in my case,there is $6$.what does this $6$ mean and which type of password encryption does it use?

regards
nik
 
Old 11-10-2010, 05:16 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399
Hi,

This: $1$ or $6$ show the id's.

ID meaning:
Quote:
ID | Method
---------------------------------------------------------
1 | MD5
2a | Blowfish (not in mainline glibc; added in some Linux distributions)
5 | SHA-256 (since glibc 2.7)
6 | SHA-512 (since glibc 2.7)
If you see $6$ then SHA-512 is used.

Source of information: Ubuntu manuals: karmic (3) crypt.3.gz

Hope this helps.
 
1 members found this post helpful.
Old 11-10-2010, 05:29 AM   #3
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 537

Rep: Reputation: 79
To add to the previous poster here is the syntax of your password in /etc/shadow:
$id$salt$encrypted

Where ID is the algorithm used:
0-DES, 1->MD5, 2a->Blowfish, 5->SHA-256, 6->SHA512

Below is en example of what you can find in my /etc/shadow (some what modifyed )
Code:
user:$6$OdDz6Xyt$e9BuC95Ov5ZOl1B1zeNIQdGffDOdupVgZFjpmRVf9d9G5k6IuNSDEKksgQOQ1LiCY9TxzvaT0kkNb4Fp/rWD11:14881:0:99999:7:::
 
1 members found this post helpful.
Old 11-10-2010, 05:30 AM   #4
nikhidet
LQ Newbie
 
Registered: Oct 2010
Posts: 14

Original Poster
Rep: Reputation: 0
erm it is really helpful

thanks a lot now i understand the meaning of that things
thanks again
 
Old 11-10-2010, 05:57 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399
You're welcome

BTW: Can you put the SOLVED tag up for this thread? (first post -> Thread Tools).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Password Encryption knoppixt Linux - Server 5 08-14-2010 08:13 AM
Linux password encryption and data encryption Tux-Slack Programming 4 06-20-2007 07:46 AM
type sudo command then i cant type in a password turoblaztr Linux - General 5 01-14-2007 10:58 AM
password encryption charafantah Programming 4 10-07-2006 07:13 AM
installing redhat 8.0 when text login in I cannot type password?? I type root scrist Linux - General 4 04-22-2006 03:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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