DES Encryption

Thread Tools Search this Thread
Top Forums Programming DES Encryption
# 1  
Old 05-29-2002
Java DES Encryption


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?

# 2  
Old 05-29-2002
You will need to use the crypt(3C) routine.
# 3  
Old 05-29-2002
Thanks Smilie

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?


Last edited by Maestin; 05-29-2002 at 02:41 PM..
# 4  
Old 05-29-2002
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  
Old 05-29-2002
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?


Last edited by Maestin; 05-29-2002 at 05:14 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Cybersecurity

File encryption tools with MAC address as an encryption key

Hi all, I'm looking for secure file encryption tools that use MAC address as encryption key. FYI, I'm using Red Hat Enterprise Linux OS. For example: when A wants to send file to B A will encrypt the file with B's computer MAC/IP address as an encryption key This file can only be decrypted... (2 Replies)
Discussion started by: sergionicosta
2 Replies

2. Programming

Help needed regarding Triple Des

Hi, Does anyone know of a good site where i can find C source code example of Triple Des algorithim? Cheers (3 Replies)
Discussion started by: dwgi32
3 Replies

3. UNIX for Dummies Questions & Answers

File encryption/Key encryption ????

My dilemma, I need to send, deemed confidential, information via e-mail (SMTP). This information is sitting as a file on AIX. Typically I can send this data as a e-mail attachment via what we term a "mail filter" using telnet. I now would like to somehow encrypt the data and send it to a e-mail... (1 Reply)
Discussion started by: hugow
1 Replies

4. Cybersecurity

MD5 to DES encryption

Is it possible to change the type of encryption from MD5 to DES without removing a user? Way back when this server was created, users were created with the MD5 encryption. Now, all users created with DES encryption. Is it possible to just change the type of password encryption? Users using... (1 Reply)
Discussion started by: Larsonist
1 Replies
Login or Register to Ask a Question