Crate ultra [] [src]

Cryptanalysis of the Engima in Rust.

Structs

Enigma

Functions

decrypt

Decrypts the given string by iterating through multiple possible Enigma configurations, returning the tuple (plaintext, key, ring, rotor) corresponding to the most probable plaintext.

qgram_score

Strips all non-alphabetic characters from the given message string and returns the sum of the log-probabilities of each quadgram substring.