projects

I like doing recreational programming and just working on random things that interest me. Try recreational programming!

security and cryptography
  • newspeak

    rust

    End-to-end encrypted chat in Rust implementing Signal's Post-Quantum Extended Diffie-Hellman and Double Ratchet. Built with tonic for gRPC, SQLite for storage, dalek primitives, and a ratatui terminal UI.

  • c25519

    c

    Side-channel attack resistant Ed25519 implementation in C that also includes SHA-512. It focuses on practical performance while passing a broad set of test vectors.

  • psync

    go

    Command-line sync tool for untrusted providers that encrypts files and hides metadata such as exact file count and file sizes. Uses ChaCha20-Poly1305 for encryption and Argon2id for key derivation.

  • secp256k1

    c

    secp256k1 signing and verification implementation with Jacobian coordinates and Montgomery representation to reduce expensive operations. Includes deterministic RFC6979 nonces.

  • hkdf

    c

    Self-contained header-only HKDF implementation in C with SHA-256 and HMAC primitives included.

  • pqxdh

    go

    Go library for Post-Quantum Extended Diffie-Hellman and XEdDSA. Extends X3DH with ML-KEM to provide stronger resistance against future quantum adversaries.

  • merkle

    goc

    Merkle tree implementations in Go and C using SHA-256, including generation and verification of inclusion proofs.

  • schnorr

    python

    Schnorr signatures implemented over secp256k1 curve in 100 lines of Python. Serves as an educational implementation without dependencies (related to math).

  • gocry

    go

    Proof-of-concept ransomware implementation for educational and security research purposes.

programming languages and parsing
  • kukka

    rust

    Small and fast parser combinator library in Rust that uses static dispatch to avoid trait-object overhead. It's mature enough to write parsers for JSON and CSV in a few lines..

  • ampl

    zig

    Concurrent programming language written in Zig that explores Erlang-inspired ideas with a less functional style.

  • mc

    go

    A simplistic C compiler written in Go with lexical analysis, parsing, IR generation, and x64 assembly output. Stopped working on this after getting a macbook.

distributed systems and databases
  • haystack

    go

    Distributed file system inspired by Facebook's Haystack architecture. Uses a Raft-based directory cluster to map files to append-only volumes and coordinates replication across store servers.

  • distsql

    go

    Distributed consensus layer built on top of SQLite for coordinating state across nodes.

  • levelsql

    go

    Minimal SQL implementation that stores relational data as key-value pairs on LevelDB.

random / fun
  • dot

    go

    A tiny easy-to-use dotfile manager built using in Go in a few hundred lines.

  • hashvis

    c

    Small command line utility that generates unique ASCII art based on file contents written in C.