libenigma
Enigma machine utility library
Loading...
Searching...
No Matches
brute.h File Reference
#include "crack.h"

Go to the source code of this file.

Functions

float enigma_brute_score (const EnigmaCrackParams *, const char *)
 Calculate the score of a given text using the brute force dictionary cracking method.
 

Function Documentation

◆ enigma_brute_score()

float enigma_brute_score ( const EnigmaCrackParams cfg,
const char *  text 
)

Calculate the score of a given text using the brute force dictionary cracking method.

Parameters
cfgThe configuration parameters for the Enigma machine.
textThe text to be scored.
Returns
The score of the text. It will be 1.0 if two dictionary words exist in the plaintext, and 0.0 otherwise.