This repository contains four Wolfram Mathematica notebooks used to reproduce the results of the article "Feasibility of entanglement-based QKD protocols with SPDC and quantum-dot sources". All necessary comments, explanations, and instructions are included directly within the notebooks.