home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
HATCH
/
LINKUP24.ZIP
/
DE.C
next >
Wrap
C/C++ Source or Header
|
1995-12-03
|
4KB
|
69 lines
/**************************************************************************
* DE.C/DECRYPT.OBJ Copyright 1994 Chavous Camp, all rights reserved! *
* DE.C -- Main decryption engine for the new encryption method being *
* distributed to registered LinkUp SysOps. *
***************************************************************************
* You may modify this code to be used in your network, BUT this code is *
* copyrighted and may NOT be distributed to ANYONE without prior *
* permission from the author, Chavous Camp. *
***************************************************************************
* Before compiling, you need to copy DE.C to the following files: *
* DE1.C, DE10.C, DE257.C, DE258.C, DE259.C, DE260.C, DE261.C, and DE511.C *
* then edit each file accordingly using any text editor, then you may *
* compile them(NOTE: They must be compiled using the SMALL memory model) *
* here's the command line to compile each DE file: *
* BCC -ms dexxx.c decrypt.obj *
* or TCC -ms dexxx.c decrypt.obj *
* change the xxx to be the number of the DE file your compiling.... *
**************************************************************************/
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <io.h>
#include <string.h>
/************************************************************************
* Below is the password for the encryption method, it is used to make *
* encryption/decryption more unique so as to not allow anyone to "hack" *
* into your network, the password can be up to 25 characters long, that *
* should be enough characters to guarantee "uniqueness" for each method *
* be sure to be as unique as possible when creating them, they WILL also*
* be encrypted in each update you send out so that it makes it even *
* harder for someone to figure out the encryption method. Be sure to *
* use the same password you used when configuring LinkUp, otherwise the *
* updates will NOT go through correctly! Be sure to change the password*
* for EACH DE file. There is a "meter" below to help you keep the *
* passwords under 25 characters *
* PW Meter [_________________________]**********************************/
#define PW "PASSWORD"
/************************************************************************
* change the message to be whatever you want the DE file to say when an *
* update is properly decrypted, leave it blank "" if you don't want a *
* message to be printed out *
************************************************************************/
#define Message "\rReceived NetName Update\n"
/************************************************************************
* DO NOT modify this block of code! If you do you will regret it! *
************************************************************************/
typedef struct {
char password[25];
char orig_name[13];
long orig_file_len;
int enc_method;
char res[80]; //reserved for later updates...
} inforec;
//***********************************************************************
extern int decrypt(char *filein, inforec inf, char *message);
int main(int argc, char **argv)
{
inforec inf;
strcpy(inf.password,PW);
if (argc==2)
exit(decrypt(argv[1], inf, Message));
else
exit(1);
return 1;
}