pymarkov is a simple implementation of a markov model Markov model for use in password strength analysis.
It allows you to train a stochastic model on known compromised passwords and use that to analyse the strength of passwords.
For example, building a model on the rockyou dataset.
python3 ./markov.py build ./rockyou.txt models/rockyou.markovpymarkov can output a report of all of the bigram weights in a csv file.
python3 ./markov.py build models/rockyou.markov rockyou.csvpymarkov can analyse input passwords and output a logarithmic strength score.
python3 ./markov.py strength models/rockyou.markov password correcthorsebatterystaplepassword: 28.80
correcthorsebatterystaple: 94.80