Giter Site home page Giter Site logo

Comments (4)

AlphaJack avatar AlphaJack commented on April 28, 2024 1

I misunderstood your ideas the first time.

No problem, I expressed myself badly in my original post, I'm glad it helped

from horcrux.

Syndamia avatar Syndamia commented on April 28, 2024

@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.

horcrux-help

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.

horcrux-header


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.

from horcrux.

AlphaJack avatar AlphaJack commented on April 28, 2024

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.

from horcrux.

Syndamia avatar Syndamia commented on April 28, 2024

I'm sorry, I misunderstood your ideas the first time.

I agree with both of your suggestions.

from horcrux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.