LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-08-2007, 03:49 AM   #1
prasanthhs
LQ Newbie
 
Registered: Aug 2007
Location: Japan
Posts: 24

Rep: Reputation: 0
Crypt


I've used the Crypt(char*passwd,char* salt) fuction to encrypt a password.

How to decrypt the same????
 
Old 08-08-2007, 10:52 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
You don't. You compare hashes.


Cheers,
Tink
 
Old 08-08-2007, 11:15 PM   #3
prasanthhs
LQ Newbie
 
Registered: Aug 2007
Location: Japan
Posts: 24

Original Poster
Rep: Reputation: 0
Re:Crypt

Thanks..we were thinking of doing the same 2..
 
Old 08-09-2007, 02:12 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Good move ...

It's often (most of the time?) a bonus to rely on
proven-good concepts :}



Cheers,
Tink
 
Old 08-09-2007, 11:18 PM   #5
prasanthhs
LQ Newbie
 
Registered: Aug 2007
Location: Japan
Posts: 24

Original Poster
Rep: Reputation: 0
Re:Crypt

But its kind of complicated!!!coz de txt file is open for all...is it crackable???

if so any way of havin really good authentication using apache??
 
Old 08-09-2007, 11:58 PM   #6
prasanthhs
LQ Newbie
 
Registered: Aug 2007
Location: Japan
Posts: 24

Original Poster
Rep: Reputation: 0
Re:Crypt

WE are using apache/htaccess now>.....is ther any alternate way or anyother efficient way of using de same...


coz htaccess stores the username assword in encrypted form which is however accesible 2 all.....
 
Old 08-10-2007, 12:51 AM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Depends on what you're trying to achieve. What are you using
these usernames/passwords for? And what with?


Cheers,
Tink
 
Old 08-13-2007, 03:32 AM   #8
prasanthhs
LQ Newbie
 
Registered: Aug 2007
Location: Japan
Posts: 24

Original Poster
Rep: Reputation: 0
wel it s a general authentication method for protecting a user's folders on a system.

so wat wud be the ideal way of protection considering de fact that de password file is up for all???
 
Old 08-13-2007, 03:51 AM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
You didn't quite answer my question, but if your program for
instance supports LDAP you could store the information using
OpenLDAP and tackle your concerns that way. If it was apache
you could use modules that store account data in some data-
base ... as I said: w/o your input it's hard to make good
suggestions as to what would work for you.



Cheers,
Tink
 
Old 08-13-2007, 11:21 PM   #10
prasanthhs
LQ Newbie
 
Registered: Aug 2007
Location: Japan
Posts: 24

Original Poster
Rep: Reputation: 0
Re Crypt

Wel we are using webdav server.so its like anybody who accesses webdav can access its password 2 once they come 2 know we've been using webdav .....
 
Old 08-14-2007, 01:31 AM   #11
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
You should be able to limit access to the password file to only allow the user apache runs as to access it.
 
Old 08-15-2007, 11:35 PM   #12
prasanthhs
LQ Newbie
 
Registered: Aug 2007
Location: Japan
Posts: 24

Original Poster
Rep: Reputation: 0
Re Crypt

i din quite get u..hw 2 do that??
 
Old 08-16-2007, 12:33 AM   #13
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Set the proper UNIX permissions on the file.
 
Old 08-16-2007, 11:22 PM   #14
prasanthhs
LQ Newbie
 
Registered: Aug 2007
Location: Japan
Posts: 24

Original Poster
Rep: Reputation: 0
Re Crypt

ok wil try it out and also i've 2 get approval for that 2..so wil let u know soon!!!!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No Crypt AMMullan Linux - Software 4 08-08-2007 03:48 AM
dm-crypt rino.caldelli Linux - Software 1 07-28-2005 09:06 PM
dm-crypt rino.caldelli Linux - Security 1 07-28-2005 12:46 PM
Crypt help liguorir Linux - Security 2 05-11-2004 09:44 AM
crypt IBP Linux - Software 3 03-03-2003 05:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:52 AM.

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