Decoding Substitution Cipher with Bayesian Inference and Markov Chain Monte Carlo.
python decode.py
for help, see python decode.py -h
decode.py
: decoding scriptdata_mining.py
: data mining script that minespride-and-prejudice.txt
f_45.txt
,h_45.txt
,j_45.txt
: three subsititon codes*_out.txt
: the corresponding decoded plain texts*_permutation.txt
: the corresponding substitition cipher key
see report.pdf