Code

I maintain the following open-source code repositories (one personal, two orgs):

Here are some selected repositories that may be useful for educational purposes:

  • Cryptography Basics: Python code examples for basic cryptographic algorithms including ECC, FHE Concrete, LLL algorithm, NTRU, NTT, ML-KEM, ring-LWE, module-LWE.
  • Shor's Algorithm: Qiskit implementation of Shor's algorithm for integer factorization.
  • Physics-Informed Neural Networks (PINNs): PyTorch implementation of PINNs for solving differential equations such as the heat equation and Black-Scholes for options pricing.
  • Financial Modeling: Python code for various financial models including ARIMA, CAPM, ETS, GARCH, basic ML, portfolio optimization, XGBoost, simple Black-Scholes, credit default swaps, options pricing.
  • SIGINT: Python code for signal intelligence analysis and processing. Also available via PyPI as sigint-examples.
  • Optimization: Python code for various optimization algorithms in cvxpy and Gurobi including control, least squares, linear programs, MILP, portfolio optimization, and quadratic programs.
  • AES Block Cipher Modes: C code for implementing AES block cipher modes following NIST SP800-38X standards.
  • Post-quantum Cryptography: Implementations of ring-LWE, module-LWE, NTT, and ML-KEM in pure Rust, in accordance with NIST FIPS-203. Published to Crates.io as ntt, ring-lwe, module-lwe, mlkem-fips203.
  • Neuroimage Analysis: MATLAB code for analyzing open-source fMRI data including using DTI (diffusion tensor imaging) techniques.
  • Natural Language Processing: Python code for various NLP tasks including sentence classification, text summarization, sentiment analysis, keyword extraction, hate speech detection, next word prediction, spam detection, text classification, spelling correction, named entity recognition, and topic modeling.
  • Machine Learning: Python code for various ML tasks including MNIST classification, a Kaggle competition solution using XGBoost, t-SNE maps of SAMHSA mental health data, rank minimizing regularization techniques, and basic geometric deep learning examples.