test-des-linux
所属分类:加密解密
开发工具:C/C++
文件大小:20KB
下载次数:63
上传日期:2008-09-17 17:51:15
上 传 者:
米花马
说明: 一个完整的des演示程序 ,在linux下编译通过
(Des a complete demonstration of the procedures adopted in the compiler under linux)
文件列表:
des-linux\benchmark.c (668, 1993-10-05)
des-linux\des.1 (2227, 1993-10-05)
des-linux\des.3 (2038, 1993-10-05)
des-linux\des.c (14341, 1993-10-05)
des-linux\test\kgen.c (1009, 1993-10-05)
des-linux\test\getopt.c (1437, 1993-10-05)
des-linux\test\destest.c (595, 1993-10-05)
des-linux\test\misc.c (469, 1993-10-05)
des-linux\descalc.c (1569, 1993-10-05)
des-linux\descert.c (913, 1993-10-05)
des-linux\descycle.c (912, 1993-10-05)
des-linux\certify-data (1734, 1993-10-05)
des-linux\getpass.c (1031, 1993-10-05)
des-linux\main.c (3973, 1993-10-05)
des-linux\radlogin.c (3678, 1993-10-05)
des-linux\Makefile (3060, 1993-10-05)
des-linux\test (0, 2008-09-17)
des-linux (0, 2008-09-17)
DES-Linux 1.0 10/04/93 Public-domain DES library, commands, and utilities
for Linux (With SunOS-Compatible des(1))
(Modified by Chris Cappuccio (chris@g386bsd.first.gmd.de) for Linux)
The DES functions in libdes.a are defined in des(3). Various twitches
and such have been made to this DES package, it should compile on
any operating system that uses a standard C compiler. (It likes GCC,
I know that for sure :) It has been optimized and configured for Linux,
using the following environment:
o Linux kernel version 0.99.13
o GCC version 2.4.5
o Libc version 4.4.1
It should compile sweetly under any version of Linux, newer or older.
Not to mention *BSD, Ultrix, SunOS(Why?), SVR?, etc... Running DOS
with DJGPP, I bet you can at least get des(1) working, so you can
exchange data between DOS<->Linux<->SunOS in a somewhat secure manner
(Our des(1) is compatible with the SunOS version thereof). It seems
fun to play around with some of this stuff anyways. Note that DOS users
will need to compile in test/getopt.c if they have no getopt() function.
This package includes:
des(1): (/usr/bin/des) A program compatible with SunOS des(1)
to encrypt files using DES encryption routines.
des(3): (/usr/lib/libdes.a) A library of des functions, defined
in the des(3) man page. ('man 3 des' will show you this page)
radlogin: (/bin/radlogin) A login program for secure login over
over insecure channels (such as packet radio). Defined
in detail below.
descalc: (/usr/bin/descalc) Used with radlogin to encrypt/decrypt
challenges with the key listed in /etc/rkeys. Defined
in detail below.
descert: (/usr/bin/descert) Used to test the des(3) library
functions for validity.
descycle: (/usr/bin/descycle) Investigate cycles in DES output
feedback mode.
benchmark: (/usr/bin/benchmark) Run a DES loop consuming CPU time,
useful for benchmark tests.
test/: This directory contains unfinished and somewhat useless
programs that were some of Phil's ideas. I may hack on
them if I gain interest :). Look for one of these in version
1.1.
Here are the basic steps to getting this DES implementation working
on a normal Unix system:
1. 'make certify' - It should give you a screen full of
K: 0001... P: 33895... C: 39393... OK
If it says 'Encrypt FAIL' instead of 'OK', you have your byte-order
set wrong. Take -DLITTLE_ENDIAN from the 'CFLAGS' in Makefile.
2. Make sure you are root and 'make install'
This step will compile everything and install it in the proper place
(/usr/bin for all utilities except radlogin, /bin for radlogin, /usr/lib
for libdes, and /usr/man/manX for the manual pages)
If you do not have root/superuser access and you wish to install des
for your own use, type 'make all' and this will make and test des,
leaving it in the current directory.
Usage Example:
Say you want to encrypt the file credit-history.1092, here's how you would
do it:
john$ des -e < credit-history.1092 > credit-history.1092.des
Enter key:
Enter key again:
john$ rm credit-history.1092
Say you want it back in readable form:
john$ des -d < credit-history.1092.des > credit-history.1092
Enter key:
近期下载者:
相关文件:
收藏者: