diff options
Diffstat (limited to 'utilities/ciphertest2.cpp')
-rw-r--r-- | utilities/ciphertest2.cpp | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/utilities/ciphertest2.cpp b/utilities/ciphertest2.cpp deleted file mode 100644 index bac5c0c..0000000 --- a/utilities/ciphertest2.cpp +++ /dev/null @@ -1,44 +0,0 @@ -#include <ctype.h> -#include <stdio.h> -#include <fcntl.h> -#include <errno.h> -#include <stdlib.h> - -#ifndef __GNUC__ -#include <io.h> -#else -#include <unistd.h> -#endif - -#include <cipherfil.h> -#include <versekey.h> -#include <rawtext.h> - -#ifndef NO_SWORD_NAMESPACE -using sword::VerseKey; -using sword::RawText; -using sword::CipherFilter; -#endif - -int main(int argc, char **argv) { - VerseKey key; - RawText *rawdrv; - - if (argc != 3) { - fprintf(stderr, "usage: %s <datapath> \"<key>\"\n", argv[0]); - exit(1); - } - - rawdrv = new RawText(argv[1]); - rawdrv->AddRawFilter(new CipherFilter(argv[2])); - - printf("\n"); - - key.AutoNormalize(0); - key.Headings(1); - for (key.Index(0); (!key.Error()); key++) { - rawdrv->Key(key); - printf("%s: %s\n", (const char *)key, (const char *)*rawdrv); - } - return 0; -} |