Skip to content
Python3 library for sophisticated timing attacks using Gaussian Mixture Model.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


An API to make sophistacted timing analysis using Gaussian Mixture Models, among others.

Example usage script:

import password_timing_analysis
import time

PW = "SuPerDupeRStrongPassw0rd"

# Dummy string compare function
def str_compare(str1, str2):
    return str1 == str2

# This query function must be implemented by the user and provided to Timea constructor.
def example_queryf(candidate):
    t1 = time.process_time()
    str_compare(candidate, PW)
    t2 = time.process_time()
    return (t2 - t1) * 10**9

# Create Timea object - provice timing query function and length of password (when to stop).
timea = password_timing_analysis.Timea(example_queryf, len(PW), decision_metric="gmm", decision_rule="max", queries=500)
  • Metrics that can be used: "gmm", "mean", "median", "variance" or "percentile"
  • Decision rules based on metric: "max", "min"

For more options, just look in the code - it's not much :P

You can’t perform that action at this time.