Skip to content

Instantly share code, notes, and snippets.

@benjaminwilson
benjaminwilson / secret-sharing-example.py
Created April 15, 2026 02:39
Additive secret sharing example
import numpy as np
import matplotlib.pyplot as plt
# Reproducible randomness
rng = np.random.default_rng(12)
# Higher-resolution binary pixel grid depicting an "S"
secret = np.array([
[0,0,1,1,1,1,1,1,0,0],
[0,1,1,0,0,0,0,1,1,0],
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.