#include <stdio.h>
#include <des_crypt.h>

main(){
	FILE* file;
	char	pass[]="PASSWORD";
	char	buf[256];

	file = fopen ("billing", "r");
	if (file == NULL)
	  {
	    printf("File not found.\n");
	    return -1;
	  }
	des_setparity (pass);
        memset (buf, 0, 256);
	while (fread (buf, 256, 1, file))
	  {
	    ecb_crypt (pass, buf, 256, DES_DECRYPT|DES_SW);
	    printf ("%s\n", buf);
	    memset (buf, 0, 256);
	  }
	fclose (file);
	return 0;
}
