The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
pgp encryption Arvind Maurya UNIX for Advanced & Expert Users 0 04-13-2007 03:48 AM
File encryption/Key encryption ???? hugow UNIX for Dummies Questions & Answers 1 03-18-2006 01:29 PM
128 bit encryption vicious3126 Security 3 08-30-2002 06:17 PM
encryption is possible?? trynew Shell Programming and Scripting 3 08-09-2002 10:03 AM
MD5 to DES encryption Larsonist Security 1 06-14-2002 12:50 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-29-2002
Registered User
 

Join Date: Mar 2002
Posts: 21
Post DES Encryption

Hello

I'm writing a program to "lock" my computer while in X-mode (sort of my own version of xlock).

I've written the basic stuff.. but now I need encrypt the entered password, and compare it to the encrypted password in the /etc/shadow-file..

I looked in the man-pages for 'des', but I'm a little confused..

There are lots of function there, that generate keys, and encrypt data in different ways..

Which one should I use for my purpose?

//Maestin
__________________
Daamn!
Reply With Quote
Forum Sponsor
  #2  
Old 05-29-2002
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,663
You will need to use the crypt(3C) routine.
Reply With Quote
  #3  
Old 05-29-2002
Registered User
 

Join Date: Mar 2002
Posts: 21
Thanks

I want to disable ctrl + alt + del while running the program.. how do I do that?

Is that a signal, just like the interrupt signal?

Just a newbie-question:

What does '3C' mean?

3 chars?

//Maestin
__________________
Daamn!

Last edited by Maestin; 05-29-2002 at 10:41 AM.
Reply With Quote
  #4  
Old 05-29-2002
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,663
The 3C means that it is section 3C of the manual. On a Sun you would type "man -s3C crypt" to get a man page. With HP-UX, you would type "man 3C crypt".

That cntl + alt + del is a pc concept. I'll have to leave that to someone else.
Reply With Quote
  #5  
Old 05-29-2002
Registered User
 

Join Date: Mar 2002
Posts: 21
Just one more question..

When I tried the crypt() function in a sample program, and encrypted my password, it didn't look anything like my password in the /etc/shadow-file..

Do I have to use other functions, to extract the password from the shadow-file?

//Maestin
__________________
Daamn!

Last edited by Maestin; 05-29-2002 at 01:14 PM.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:15 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0