🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ch.comp.os.linux
Article #19005

crypt

#19005
From: Pascal Chollet
Date: Thu, 03 Feb 2000 00:00
23 lines
1126 bytes
Hallo,
weiss jemand, wie ich in C ein String verschluesseln kann?
Ich habe das so gemacht:

	#include <des.h>
	...

	const char key[] = "test";
	const char salt[]= "XY";
	char *pwd;

	pwd = crypt(key, salt);
	...

Das Kompilieren funktioniert, nur der Linker meldet nach 'gcc -o
crypttst crypttst.c':
	...: undefined reference to `crypt'
Wieso findet er diese Funktion nicht?

Pascal

PS: Ich habe statt des.h auch schon crypt.h und unistd.h probiert, hat
nix gebracht. DES-Paket ist installiert.
Technical Details
Message-ID: <3899C1F5.41C5E628@bluewin.ch>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: GERMAN,ASCII-7-bit
X-Google-Thread: f4b73,8c0ee3714b0d0c99,start
X-Google-Attributes: gidf4b73,public
From: Pascal Chollet <chop@bluewin.ch>
Subject: crypt
Date: 2000/02/03
Message-ID: <3899C1F5.41C5E628@bluewin.ch>
X-Deja-AN: 581172241
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: newsmaster@bluewin.ch
X-Trace: bw107zhb.bluewin.ch 949600584 18760 195.186.160.18 (3 Feb 2000 17:56:25 GMT)
Organization: none
Mime-Version: 1.0
NNTP-Posting-Date: 3 Feb 2000 17:56:25 GMT
Newsgroups: ch.comp.os.linux