Comments (4)
I misunderstood your ideas the first time.
No problem, I expressed myself badly in my original post, I'm glad it helped
from horcrux.
@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.
from horcrux.
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.
I'm sorry, I misunderstood your ideas the first time.
I agree with both of your suggestions.
from horcrux.
Related Issues (20)
- Go-SSSA HOT 1
- Data Encryption - no Integrity HOT 3
- Option for XOR implementation HOT 2
- Customize format string for naming parts
- Great minds think alike HOT 2
- Cant Bind files, no such File or directory HOT 2
- Pieces are larger than the original HOT 2
- Suggestion: Use reed-solomon encoding to reduce data size HOT 1
- Hashes
- Latest Github release at v0.3 didn't have attatched binary packages. HOT 1
- Suggestion: `--version` flag
- How to get soul into file? HOT 3
- Package available in chocolatey
- Are -t and -n options are available just before `split` subcommand?
- self-sufficient horcruxes
- [CI] - The process '/opt/hostedtoolcache/goreleaser-action/1.20.0/x64/goreleaser' failed with exit code 1 HOT 1
- Proposal: Small GUI
- alternatives
- 能否提供 darwin arm64 的版本
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from horcrux.