Skip to main content

Module algorithms

Module algorithms 

Source
Expand description

Algorithms

This module have shared functions that other cryptographic algorithms may need

Modules§

double_vigenere
one_time_pad
vigenere
Vigenere

Enums§

CipherError

Functions§

fitness
Calculate closeness of given text to reference data. the closer the result is to zero, the closer the text is to the reference data. (the less probably ones are closer to -infty\
index_of_coincidence
text should be normalized It return some number, every language has their own result from IoC Random text normally is much lower than what languages returns If text.len() <2 it will return 0
modulus
Calculate modulus of two numbers