Skip to content

Instantly share code, notes, and snippets.

View spllr's full-sized avatar

Klaas Speller spllr

View GitHub Profile
@spllr
spllr / feistel_cipher_test.c
Last active February 21, 2020 22:18
Feistel Cipher test implementation inspired by the "Feistel Cipher - Computerphile" Youtube video
/**
* build:
* gcc feistel_cipher_test.c -o feistel_cipher_test
*
* run:
* ./feistel_cipher_test
*
* Feistel Cipher test implementation inspired by the "Feistel Cipher - Computerphile"
* Youtube video: https://youtu.be/FGhj3CGxl8I
*
@spllr
spllr / privacy_preserving_contact_tracing_test.rb
Last active April 20, 2020 07:22
Demo implementation of "Privacy-Preserving Contact Tracing" introduced by Apple and Google during the COVID‑19 pandemic.
#!/usr/bin/env ruby
# Usage: privacy_preserving_contact_tracing_test.rb [options]
#
# Specific options:
# -K, --tracing-key=TRACING_KEY Tracing key, 32 bytes, HEX encoded
# -DDAILY_TRACING_KEY, Daily tracing key, 16 bytes, HEX encoded
# --daily-tracing-key When provided TRACING_KEY is ignored
# -t, --time=TIME Date and/ or time to use start
# -d, --days=NUM_DAYS Number of days to generate identifiers for