00001 /* 00002 * 00003 * $Id: cipherfil_8h-source.html,v 1.7 2002/06/20 20:23:07 mgruner Exp $ 00004 * 00005 * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org) 00006 * CrossWire Bible Society 00007 * P. O. Box 2528 00008 * Tempe, AZ 85280-2528 00009 * 00010 * This program is free software; you can redistribute it and/or modify it 00011 * under the terms of the GNU General Public License as published by the 00012 * Free Software Foundation version 2. 00013 * 00014 * This program is distributed in the hope that it will be useful, but 00015 * WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 * General Public License for more details. 00018 * 00019 */ 00020 00021 #ifndef CIPHERFIL_H 00022 #define CIPHERFIL_H 00023 00024 #include <swfilter.h> 00025 #include <swcipher.h> 00026 00027 #include <defs.h> 00028 00029 class SWDLLEXPORT CipherFilter:public SWFilter 00030 { 00031 SWCipher *cipher; 00032 public: 00033 CipherFilter (const char *key); 00034 virtual ~ CipherFilter (); 00035 virtual char ProcessText (char *text, int maxlen, const SWKey * key, const SWModule * = 0); 00036 virtual SWCipher *getCipher (); 00037 }; 00038 00039 #endif