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
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
08-08-2007, 03:49 AM
#1
LQ Newbie
Registered: Aug 2007
Location: Japan
Posts: 22
Rep:
Crypt
I've used the Crypt(char*passwd,char* salt) fuction to encrypt a password.
How to decrypt the same????
08-08-2007, 10:52 PM
#2
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,622
You don't. You compare hashes.
Cheers,
Tink
08-08-2007, 11:15 PM
#3
LQ Newbie
Registered: Aug 2007
Location: Japan
Posts: 22
Original Poster
Rep:
Re:Crypt
Thanks..we were thinking of doing the same 2..
08-09-2007, 02:12 AM
#4
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,622
Good move ...
It's often (most of the time?) a bonus to rely on
proven-good concepts :}
Cheers,
Tink
08-09-2007, 11:18 PM
#5
LQ Newbie
Registered: Aug 2007
Location: Japan
Posts: 22
Original Poster
Rep:
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??
08-09-2007, 11:58 PM
#6
LQ Newbie
Registered: Aug 2007
Location: Japan
Posts: 22
Original Poster
Rep:
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.....
08-10-2007, 12:51 AM
#7
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,622
Depends on what you're trying to achieve. What are you using
these usernames/passwords for? And what with?
Cheers,
Tink
08-13-2007, 03:32 AM
#8
LQ Newbie
Registered: Aug 2007
Location: Japan
Posts: 22
Original Poster
Rep:
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???
08-13-2007, 03:51 AM
#9
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,622
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
08-13-2007, 11:21 PM
#10
LQ Newbie
Registered: Aug 2007
Location: Japan
Posts: 22
Original Poster
Rep:
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 .....
08-14-2007, 01:31 AM
#11
Moderator
Registered: Nov 2004
Location: Kennesaw, GA
Distribution: Ubuntu
Posts: 8,502
Rep:
You should be able to limit access to the password file to only allow the user apache runs as to access it.
08-15-2007, 11:35 PM
#12
LQ Newbie
Registered: Aug 2007
Location: Japan
Posts: 22
Original Poster
Rep:
Re Crypt
i din quite get u..hw 2 do that??
08-16-2007, 12:33 AM
#13
Moderator
Registered: Nov 2004
Location: Kennesaw, GA
Distribution: Ubuntu
Posts: 8,502
Rep:
Set the proper UNIX permissions on the file.
08-16-2007, 11:22 PM
#14
LQ Newbie
Registered: Aug 2007
Location: Japan
Posts: 22
Original Poster
Rep:
Re Crypt
ok wil try it out and also i've 2 get approval for that 2..so wil let u know soon!!!!
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
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
All times are GMT -5. The time now is 09:53 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News