Open AlphaJack opened 4 years ago
@AlphaJack the -t
option is for the required minimum number of horcruxes to resurrect the original file and -n
is how many horcruxes in total will be made.
At the top of each file it shows how many other horcruxes in total there are, while the command tells you how many it needs (the threshold) to reconstruct the original file.
Note: the comment at the very top is just a user friendly message, if you look at the header you can find the important information.
I made a test file, with your parameters, and if you look at the header, you can see "total"
which shows how many in total horcruxes there are and "threshold"
which shows minimum required horcruxes to bind together to reconstruct the original file.
EDIT: I also noticed a t>n error
Well, yeah, when t > n it will obviously break, you want to reconstruct the file from more horcruxes than there are!
Let's get your second example, with n = 3
and t = 5
(again, n
is total number of horcruxes and t
is minimum required to resurrect original file). You are splitting the file in 3 different horcruxes, but you want to be able to resurrect it with 5 different horcruxes.
- If I run .horcrux -t 5 split diary.txt and enter n=3 I get an error. Should the interval be "[5-inf]" instead of "(2-99)"?
How many horcruxes do you want to split this file into? (2-99): 3 parts cannot be less than threshold
That obviously doesn't work! It even gives you the error parts cannot be less than threshold
.
I don't understand what you mean by Should the interval be "[5-inf]" instead of "(2-99)"?
. No, it shouldn't, why should it?
Unrelated request, is it possible to add armv7h to the list of pre-released binaries?
If you have an unrelated request, just make another issue for it.
My suggestion about the header content is replace
IN ORDER TO RESURRECT THIS ORIGINAL FILE YOU MUST FIND THE OTHER $n-1 HORCRUX(ES)
with
IN ORDER TO RESURRECT THIS ORIGINAL FILE YOU MUST FIND AT LEAST OTHER $t-1 HORCRUX(ES)
Because with horcrux -t 3 -n 5 split diary.txt
you don't need "this plus the other 4 horcruxes" ($n files required), you just need "this and other 2 horcruxes" ($t files required).
I don't understand what you mean by Should the interval be "[5-inf]" instead of "(2-99)"?. No, it shouldn't, why should it?
.horcrux -t 5 split diary.txt
returns
How many horcruxes do you want to split this file into? (2-99):
This interval range is wrong because you can only enter a number equal or above 5 (not 2), so it should be (5-99) instead of (2-99)
I wrote "[5,inf]" because you can pick up a valid number higher than 99. The sqaure brackets state that range boundarys are valid choices, but round brackets are fine in this context.
If you have an unrelated request, just make another issue for it.
Nevermind.
I'm sorry, I misunderstood your ideas the first time.
I agree with both of your suggestions.
I misunderstood your ideas the first time.
No problem, I expressed myself badly in my original post, I'm glad it helped
If I run
horcrux -t 3 -n 5 split diary.txt
I get five .horcruxes, and each one containsIt says I must need this horcrux plus other four to resurrect the original file, while If I delete three horcruxes,
./horcrux bind .
returnssaying that I need at least (only) three horcruxes
Is this a feature? ; )
EDIT: I also noticed a t>n error:
.horcrux -n 5 split diary.txt
and enter t=99 I get the following message. Should the interval be "[2-5]" instead of "(2-99)"?.horcrux -t 5 split diary.txt
and enter n=3 I get an error. Should the interval be "[5-inf]" instead of "(2-99)"?Unrelated request, is it possible to add
armv7h
to the list of pre-released binaries?