|
libenigma
Enigma machine utility library
|
#include "crack.h"Go to the source code of this file.
Macros | |
| #define | ENIGMA_IOC_ENGLISH (1.73 / 26) |
| English language Index of Coincidence. | |
| #define | ENIGMA_IOC_ENGLISH_MIN (ENIGMA_IOC_ENGLISH - 0.25) |
| English language IoC default variance threshold. | |
| #define | ENIGMA_IOC_ENGLISH_MAX (ENIGMA_IOC_ENGLISH + 0.25) |
| English language IoC default variance threshold. | |
| #define | ENIGMA_IOC_GERMAN (2.05 / 26) |
| German language Index of Coincidence. | |
| #define | ENIGMA_IOC_GERMAN_MIN (ENIGMA_IOC_GERMAN - 0.25) |
| German language IoC default variance threshold. | |
| #define | ENIGMA_IOC_GERMAN_MAX (ENIGMA_IOC_GERMAN + 0.25) |
| German language IoC default variance threshold. | |
Functions | |
| float | enigma_ioc_score (const EnigmaCrackParams *, const char *) |
| Score text using Index of Coincidence. | |
This file declares functions for cracking Enigma configurations using the Index of Coincidence method.
| #define ENIGMA_IOC_ENGLISH (1.73 / 26) |
English language Index of Coincidence.
| #define ENIGMA_IOC_ENGLISH_MAX (ENIGMA_IOC_ENGLISH + 0.25) |
English language IoC default variance threshold.
| #define ENIGMA_IOC_ENGLISH_MIN (ENIGMA_IOC_ENGLISH - 0.25) |
English language IoC default variance threshold.
| #define ENIGMA_IOC_GERMAN (2.05 / 26) |
German language Index of Coincidence.
| #define ENIGMA_IOC_GERMAN_MAX (ENIGMA_IOC_GERMAN + 0.25) |
German language IoC default variance threshold.
| #define ENIGMA_IOC_GERMAN_MIN (ENIGMA_IOC_GERMAN - 0.25) |
German language IoC default variance threshold.
| float enigma_ioc_score | ( | const EnigmaCrackParams * | cfg, |
| const char * | text | ||
| ) |
Score text using Index of Coincidence.
This function calculates the Index of Coincidence for the given text and returns
| cfg | Pointer to the cracking configuration structure. |
| text | The text to score. |