libenigma
Enigma machine utility library
Loading...
Searching...
No Matches
ioc.c File Reference
#include "ioc.h"
#include "common.h"

Functions

float enigma_ioc_score (const EnigmaCrackParams *cfg, const char *text)
 Score text using Index of Coincidence.
 

Detailed Description

This file implements cracking functions using the Index of Coincidence method.

Function Documentation

◆ enigma_ioc_score()

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

Parameters
cfgPointer to the cracking configuration structure.
textThe text to score.