[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I'm probably missing some c headers, but what ?



On Mon, 10 May 1999, Oded Arbel wrote:

> 
> I'm trying to write a c program that uses the crypt function
> (char *crypt(const char *key, const char *salt) ) but when I try to
> compile it, I get these error messages :
> 
> I think I should have the relevant source some where around here (I have
> the relevant man page, so I figured...) but I couldn't figure out which,
> where, what and ..  ahmm... who ?
> 
> anyone can help ?
> 
> Oded

Oded, I strongly recommend on using other function the the given crypt
function. In unix there are two crypt functions - one uses ENIGMA, the
german rotor machine used in the second world war, the second uses a
variant of Date Encryption Standard (DES).
Enigma was broken in the 40's, and is very unsecure (UK and USA could have
broken the enigma encrypted messages without computers... today it's more
the trivial).
DES is considered to be a  very weak encryption function. It uses 56 key
bits (you give it up to 8 byutes - 64 bits), and therefore considered
weak. Last time I've checked a DES mmachine broke DES in about 22 hours.
Just to give you a ratio, 64 bits encryption is passe, it is considered on
the edge of safty (each new key-bit, multiply the time needed to the
breaking phase by 2).
Today the new standard encryption (which is currently in the process of
choosing and evaluation) - AES, will allow 128-, 192-, and 256- bits of
key. for more refference (and some implemnatations pointer) -
AES Official Web-site - http://www.nist.gov/aes
Block Cipher Lounge   - http://t2.technion.ac.il/~sorrd/mylinks.html
goto to AES Lounge (first link) and then go to BC lounge (btw, the AES
Lounge is also very recommended).

Rifkinus Farmus Administratus
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Orr Dunkelman,
Computer Sciences Faculty, Technion, Israel
Phone #:04-828(2741) (also fax) or 03-6737788
Email  :orrd@vipe.technion.ac.il
Http   :http://t2.technion.ac.il/~sorrd
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=