LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Closed Thread
 
LinkBack Search this Thread
Old 05-10-2004, 09:30 PM   #1
liguorir
Member
 
Registered: May 2003
Posts: 256

Rep: Reputation: 30
Question Crypt help


-------------------------------------------------------------------------
Here's my program...
-------------------------------------------------------------------------
#include <stdio.h>
#include <unistd.h>
#include <crypt.h>

int main (int argc, char **argv) {

char salt[] = "aa";
char *password;

/* Read in the user's password and encrypt it. */
password = crypt ( argv[1], salt);

/* Print the results. */
puts ( password );

return 0;
}


-------------------------------------------------------------------------
Here's my error...
-------------------------------------------------------------------------
[root@lserver tmp]# gcc -o go main.c
/tmp/ccsQikMK.o(.text+0x32): In function `main':
: undefined reference to `crypt'
collect2: ld returned 1 exit status

-------------------------------------------------------------------------
Any help?
-------------------------------------------------------------------------
 
Old 05-11-2004, 02:45 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 121Reputation: 121
Triple posting

Rules specifically state:

Do not post the same discussion in more than one forum. Duplicate discussions can be frustrating for other members. Try and pick the most relevant forum for your post. If you are unsure put it in Linux - General.
 
Old 05-11-2004, 09:44 AM   #3
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 57
liguorir,
You've been a member here long enough to know the rules. Please do not do that again.

Thread Closed - Massive postage
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are 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
setting up dm-crypt Bd22 Linux - Security 1 09-23-2004 07:29 PM
crypt IBP Linux - Software 3 03-03-2003 05:34 AM


All times are GMT -5. The time now is 05:27 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration