Main Page | Namespace List | Data Structures | File List | Data Fields | Globals

main.h File Reference

#include "cipher.h"
#include "nema.h"

Go to the source code of this file.

Functions

int main (int argc, const char *argv[])
 arguments: inputfile, password
void bruteForce (const char *inputfile)
 brute-force attack ciphertext stored in inputfile
void knownPlaintext (const char *plainfile, const char *cipherfile)
 known-plaintext attack
string getPassword (int pw[10])
 return 10-letter password corresponding to state pw[10]


Function Documentation

void bruteForce const char *  inputfile  ) 
 

brute-force attack ciphertext stored in inputfile

string getPassword int  pw[10]  ) 
 

return 10-letter password corresponding to state pw[10]

void knownPlaintext const char *  plainfile,
const char *  cipherfile
 

known-plaintext attack

int main int  argc,
const char *  argv[]
 

arguments: inputfile, password