Skip to content

Instantly share code, notes, and snippets.

@blurbdust
Created February 20, 2019 18:29
Show Gist options
  • Save blurbdust/970396330fbddcfed1177d9375255549 to your computer and use it in GitHub Desktop.
Save blurbdust/970396330fbddcfed1177d9375255549 to your computer and use it in GitHub Desktop.
CPRE.331.Lab5.Part2
from secretsharing import PlaintextToHexSecretSharer
def recover_flag(msgs):
print(PlaintextToHexSecretSharer.recover_secret(msgs))
def print_results():
msgs = []
recover_flag(msgs[::4])
recover_flag(msgs[1::4])
recover_flag(msgs[2::4])
recover_flag(msgs[3::4])
recover_flag(msgs[4::4])
print_results()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment