www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/05/13:19:58

Xref: news2.mv.net comp.os.msdos.djgpp:8310
From: lehmann AT mathematik DOT th-darmstadt DOT de (Alexander Lehmann)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Dos Port of Unix's Crypt? Anyone?
Date: 5 Sep 1996 13:27:24 GMT
Organization: Technische Hochschule Darmstadt
Lines: 50
Message-ID: <50mkfs$vrh@rs18.hrz.th-darmstadt.de>
References: <50icuu$7i6 AT news DOT wco DOT com> <50kjqg$shh AT rs18 DOT hrz DOT th-darmstadt DOT de> <322ED92C DOT 6744 AT blackmagic DOT tait DOT co DOT nz>
NNTP-Posting-Host: fb0432.mathematik.th-darmstadt.de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Bill Currie <billc AT blackmagic DOT tait DOT co DOT nz> wrote:
: Alexander Lehmann wrote:
: > 
: > OK, having said all that, if you already have a source code, I would
: > be very interested in it. (of course, I can't get it legally due to
: > ITAR again).
: > 

: I happen to have the source code.

: What's ITAR?

: BTW reading the docs, the code I have was developed in Europe and 
: imported to the US (I got it off NASA's site I think).  It just can't be 
: re-exported.

There are two distict (though related) things that are called crypt.

One is a library function that is used e.g. in the standard unix
password check and is available in source code as well as described in
various books and papers. The other one is a unix program that is
shipped with commercial unices, but not with free ones (AFAIK), since
its operations are not documented.

Both are covered by the arms export regulation, but obviously when you
buy a unix box outside the us, you get the programs (otherwise the
whole login process wouldn't work). C code for crypt (library) is
available insde the us as well as outside (e.g. ftp.funet.fi), since
it is allowed to export the books describing the procedure,
implementing it outside the us isn't a problem (I even had a book with
the complete source code at some point, which was published in
Autralia, I think). With the crypt program, the situation is not as
good, you may be able to use the program on commercial unixces and
maybe even on e.g. Linux with a SCO emulator (if they are shipping the
program), but then you need a SCO license obviously.


OK, getting back to the original question: if you want the C function
crypt, it should be very easy to compile that on djgpp once you find
the source code, the function is written reasonable portable and it's
not very difficult anyway only a lot of bit shift etc. operations.


bye, Alexander

-- 
Alexander Lehmann,                                  |  "On the Internet,
alex AT hal DOT rhein-main DOT de  (plain, MIME, NeXT)         |   nobody knows
lehmann AT mathematik DOT th-darmstadt DOT de (plain)          |   you're a dog."
<URL:http://www.mathematik.th-darmstadt.de/~lehmann/>

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019