![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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! |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
You will need to use the crypt(3C) routine.
|
|
#3
|
|||
|
|||
|
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. |
|
#4
|
||||
|
||||
|
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. |
|
#5
|
|||
|
|||
|
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. |
|||
| Google The UNIX and Linux Forums |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|