LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-12-2010, 04:07 PM   #1
PoleStar
Member
 
Registered: Jul 2010
Posts: 166

Rep: Reputation: 2
how to find encryption type ?


I used this password Pass1234
when I search password stored its Nh2yEjhdHIwtY

Can some one please tell me what kind of encryption is used?

I thought it was crypt() , but when I create crpypt on my local machine its different.

Any ideas.
 
Old 11-12-2010, 05:19 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Not sure, but here's a few hints..

Telling us what application, context, OS and/or circumstance you entered this username and password into, as well as (very big hint!!) the storage location (filename!) where you located the encrypted password, would almost certainly be enough information for some folks around here to tell you what encryption method is being used. In fact, especially in case of an open source application, you could probably determine the encryption type yourself, by Googling a little bit and/or looking at the sourcecode of the application.

For example, if you find the encrypted password in the /etc/shadow file, that'd be a great clue, and a step towards the answer.

Perhaps reading the crypt() manpage again, will possibly explain why the password generated on your local machine, is different.
 
Old 11-13-2010, 06:08 PM   #3
PoleStar
Member
 
Registered: Jul 2010
Posts: 166

Original Poster
Rep: Reputation: 2
Well, I need a script which can add values(CN, attributes etc) in AD from Linux box, that script also need to add/replace password in AD.
I found out AD uses mssfu30password field. And I assumed(after) lot of internet research and very with little results, that this should work

Code:
my $cpwd = crypt($newpwd, $salt);
But what I noticed is.

The hash create this way and into add field mssfu30password on AD does not work, (wrong password error upon trying to log to windows) When I create password from ad/windows interface it still create 13 value figure which looks like it is created with crypt().

Now also if I use first 2 alphabets of the hash/enrypted-password created by windows it self, and use as salt with the newly set password on windows, It create a different value on my Linux box.

Last edited by PoleStar; 11-13-2010 at 06:13 PM.
 
Old 11-13-2010, 07:36 PM   #4
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Jessie (Fluxbox WM)
Posts: 1,388
Blog Entries: 52

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
If I run:

Code:
perl -e 'print crypt("Pass1234", "Nh");'
I get
Code:
Nh2yEjhdHIwtY
which matches the example you gave.

Is it possible you have a newline at the end of your password, or something like that?

Last edited by neonsignal; 11-13-2010 at 07:37 PM.
 
  


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] what type of password encryption does ubuntu use? nikhidet Linux - Software 4 11-10-2010 04:57 AM
How can I find the type of a DVD? chvsudheer2010 Linux - Newbie 1 09-16-2010 07:17 AM
Installed nspr but can't find headers (for gaim-encryption) simopal6 Linux - Software 1 06-20-2006 04:35 AM
How to find out the type of my CD-RW? kpachopoulos *BSD 4 01-30-2005 01:56 AM
where I can find user type Access gorup type and access satishpatel Linux - General 0 04-07-2004 05:29 AM


All times are GMT -5. The time now is 04:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration