Main Page | Report this Page
 
   
Science Forum Index  »  Cryptography Forum  »  DES encryption source code
Page 1 of 1    
Author Message
pv
Posted: Sat Dec 27, 2003 11:59 pm
Guest
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Does anyone know where I can get the source code to DES encryption that
doesn't use the crypt() command?

I'm trying to encode an .htaccess file of passwords for uploading to a
server, but I'm using a non Linux server and I don't have PERL, so I'm
trying to write a small application which will encode a simple users
password file that I can upload to the remote server and be understood by
the Apache .htaccess control etc.

I've searched via Google and read a lot of the FAQs but most source code
available is either written in Perl and/or uses the crypt() function -
which I don't have on the system I'm writing for (RISC OS).

I was wondering if anyone could point me to any sources?

I did examine the actual DES standard, but I couldn't really work out a way
of writing a quick routine from the actual algorithm. :-(

Any help would be appreciated.

Paul

- --
Paul __\\|//__ Life,
(` o-o ') the Universe
- ---- www.segfault.co.uk ------ooO-(_)-Ooo------ & Everything ------

Posted using a RISC OS computer - 100% immune to all email viruses.

The problem with the gene pool is that there is no lifeguard.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.3.4-sb1 (RISC OS)

iD8DBQE/7qmN9lpqDjOMOSsRAuqfAJ4zem99seidwwnTL8xpjLoBxu917ACfZLAp
1exBunXz7UzLX3QXXmdqS3s=
=j4I1
-----END PGP SIGNATURE-----
Paul Rubin
Posted: Sun Dec 28, 2003 5:36 am
Guest
pv <NOSPAM@segfault.co.uk> writes:
Quote:
Does anyone know where I can get the source code to DES encryption that
doesn't use the crypt() command?

I'm trying to encode an .htaccess file of passwords for uploading to a
server, but I'm using a non Linux server and I don't have PERL, so I'm
trying to write a small application which will encode a simple users
password file that I can upload to the remote server and be understood by
the Apache .htaccess control etc.

The crypt function doesn't use plain DES. Your best bet is just port
the crypt function from the GNU or BSD C library to your target platform.
Bill Unruh
Posted: Sun Dec 28, 2003 11:13 am
Guest
pv <NOSPAM@segfault.co.uk> writes:

]-----BEGIN PGP SIGNED MESSAGE-----
]Hash: SHA1

]Does anyone know where I can get the source code to DES encryption that
]doesn't use the crypt() command?

Teh crypt() command does not use des. There are two crypt commands,
entireley and completely different, and having no relation to each
other. The crypt(1) command is an encryption process based on the enigma
encryption process. It is very very weak. The crypt(3) is a routing to
hash passwords using a variant of des. It is NOT des, it is a munged
version of des. It works by altering the permutations in des, and
encrypting the word 0 25 consecutive times using the password to be
hashed as the key.

There are loads and loads of source code sources for crypt(3). One is in
the libdes library originally written by Eric Young. There is also
ufscrypt which is a fast version.
ftp://psych.psy.uq.edu.au/pub/Crypto/DES/
has libdes



]I'm trying to encode an .htaccess file of passwords for uploading to a
]server, but I'm using a non Linux server and I don't have PERL, so I'm
]trying to write a small application which will encode a simple users
]password file that I can upload to the remote server and be understood by
]the Apache .htaccess control etc.

]I've searched via Google and read a lot of the FAQs but most source code
]available is either written in Perl and/or uses the crypt() function -
]which I don't have on the system I'm writing for (RISC OS).

]I was wondering if anyone could point me to any sources?

]I did examine the actual DES standard, but I couldn't really work out a way
]of writing a quick routine from the actual algorithm. :-(

]Any help would be appreciated.

]Paul
 
Page 1 of 1       All times are GMT - 5 Hours
The time now is Wed Oct 08, 2008 3:52 am