Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pieces are larger than the original #16

Closed
hawicz opened this issue Aug 20, 2020 · 2 comments
Closed

Pieces are larger than the original #16

hawicz opened this issue Aug 20, 2020 · 2 comments

Comments

@hawicz
Copy link

hawicz commented Aug 20, 2020

One of the properties described at https://en.wikipedia.org/wiki/Shamir%27s_Secret_Sharing is that SSS is "Minimal: The size of each piece does not exceed the size of the original data."
However, looking at the examples, each piece is 2.23 KB, larger than the original 1.75 KB.
Is that discrepancy an indication of a bug somewhere?

@wopian
Copy link

wopian commented Aug 20, 2020

There's a ~350 byte message on each file explaining what it is and where to get the decompiler, which would increase 1.75 KB to 2 KB

# THIS FILE IS A HORCRUX.
# IT IS ONE OF 5 HORCRUXES THAT EACH CONTAIN PART OF AN ORIGINAL FILE.
# THIS IS HORCRUX NUMBER 1.
# IN ORDER TO RESURRECT THIS ORIGINAL FILE YOU MUST FIND THE OTHER 4 HORCRUX(ES) AND THEN BIND THEM USING THE PROGRAM FOUND AT THE FOLLOWING URL
# https://github.com/jesseduffield/horcrux

-- HEADER --
-- BODY --

@hawicz
Copy link
Author

hawicz commented Aug 21, 2020

Oh, right, I wasn't expecting a few lines of text to add up quite so quickly.
Stripping that off I end up with a file that's the same size as the input.

@hawicz hawicz closed this as completed Aug 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants