517 karma · joined Jul 9, 2010 (16y ago) · 177 submissions
Opinions expressed are my own, and do not reflect my employer.
comment 13y ago · link · parent
User uploads file. Mega computes the convergent encryption E(F) using the hash of the file H(F). The hash of E(F) is H(E(F)) and determines the file already exists in Mega, and thus is deduplicated.
Mega does not tell the user this, and their used storage size increases (thus, RIAA cannot upload The Hobbit and determine it's already there). The user enters their password P, the convergent hash H(E(F)) is encrypted with the user's password - P(H(E(F))) - and is only stored correlated with the user as such. The hash of the original H(F) (used to convergently encrypt the file) is also encrypted with the user's password, as P(H(F)).
On retrieval, the user enters their password P, the hash P(H(E(F))) and the hash of the original P(H(F)) is decrypted. Now Mega knows where to find the convergently encrypted file, using H(E(F)) to locate E(F). Mega decrypts using the hash of the original, and returns the file F to the user.
If the password P is only stored hashed (as it should!), then there is no way to correlate a given infringing file with any other user's ownership. The user's account only contains P(H(E(F))) and P(H(F)), both of which are unique to that user.
Anyone see a problem (other than the implementation details and possible lack of motivation for Mega to do so)?
comment 13y ago · link · parent
The keyword is "convergent" encryption. We used something like this at Iron Mountain Digital many years ago (they still do, AFAIK), and it is used in BitCasa today.
You should read the papers, but essentially the concept can be boiled down to encrypting the plaintext with a hash of the plaintext.
Since there is no way to derive the hash of a plaintext from an encrypted block, there is no way to hack the key other than regular old brute force. But if the same data is uploaded twice, the same hash is computed, and thus the same encryption is used, and thus the encrypted cipher text is identical.
The encryption keys can be stored separately from the cipher text. In particular, the user who uploaded the data would store the hashes (this would already happen in most backup applications anyway). Then, for retrieval, they give the hash and the block location to the server, who is now able to decrypt it. By stealing the server, you gain zero access to plaintext data.
Very cool stuff :)
comment 14y ago · link · parent
If you enjoy this stuff, you'll get a pleasant tickle out of this one:
What is the probability that there exists a SHA-1 hash which hashes to itself? In other words, are there any fixed points?
(This post was edited to fix the phrasing mistake nicely pointed out by a commenter. Originally, I asked "probability that a SHA-1" when I meant "probability that any SHA-1")
comment 14y ago · link · parent
Actifio is looking for software engineers. Actifio is radically simple copy data management. We've invented some really cool technology to do things no other system can, and we're dead easy to use. This is not your mother's enterprise software!
Actifio has been invested in by top VC firms (one of the very few East Coast companies in Andreessen Horowitz's portfolio) and is growing super fast.
We're always looking for smart engineers in every team, but since I'm on the deduplication team, I'll have to pitch you on that :)
Dedup seems like an easy problem to solve. Split the data up into blocks and make sure you only store one of each. But at scale, it becomes a whole different animal.
When you've got 128TB of 4KB blocks, you have 32 billion unique blocks of data to manage. Making our dedup ingest, restore, and garbage collect fast is a great challenge, especially with "only" 128 GB of RAM.
If you'd like to chat about a job opportunity, I'm at chris.murphy@actifio.com. Since I'm an engineer, I'm not going to type a list of silly requirements. Just send me a resume and whatever else you think I'd like to know.
comment 14y ago · link · parent
In fact, the way most people are encouraged to train is to build up to some decent mileage (at least 20 miles per week) and then mix in speed work, which varies from simply faster runs, to Fartlek (speed play), to intervals.
Knowing this, it becomes obvious why runners fall in love with speed work: they might do a "traditional" training plan and run slow, high volume for 3 months, and see minimal but steady gains. Then they do 3 weeks of sprints and make huge gains! Awesome! But those gains were a reflection of the base work. Think of it like sharpening an old, abused, rusty knife: you don't go right for the fine grit. First, you grind it down, then successively apply finer grits. The knife won't cut a tomato without the fine grits, but if you skipped straight to them, you'd be at it forever.
The other reason one should be wary of HIIT is the increased risk of injury. Especially in running, if you go from couch to sprinting, you're highly likely to be injured. It is important to run slow and often, so that your tendons, ligaments, and joints (not just your muscles and heart!) are ready for the strenuous demands of running.
Similar concepts are often spoken of in weightlifting, where you are encouraged to start with just the bar and work up.
comment 14y ago · link · parent
In Bash, you can do incremental (find as you type) history search with Ctrl+R. Something analogous for grep would be fantastic. Displaying more than one result at a time would also be great.
Another thing that grep/find lacks is a index that could make large fuzzy searches faster, but clearly that can be added too.
comment 14y ago · link · parent
In other words, I don't care if the hash doesn't avalanche perfectly (half changed for one bit of input change; a requirement for cryptographic hashing so changes are "obvious") as long as the collision rate is ~SHA256. Or, if I should care, explanations would be wonderful.
comment 14y ago · link · parent
I couldn't find a source (beyond tons of articles echoing the study), and found several contrarian sources, including http://www.wiredacademic.com/2012/01/unemployment-data-most-...
108.
Practical HATEOAS (pt 2)(theoryinpractise.tumblr.com ↗)
1 points · by cmurphycode · 14y ago · discuss
comment 14y ago · link · parent
Seems like a really nice addition to this would be to demonstrate a quick integration with git bisect (http://book.git-scm.com/5_finding_issues_-_git_bisect.html). That could help you quickly identify troublesome commits where the speed dropped significantly.
comment 14y ago · link · parent
I understood the argument that the speed of the Earth's orbit dominated the Moon's, but I was having a really tough time visualizing it. The wiki article (http://en.wikipedia.org/wiki/Orbit_of_the_Moon#Path_of_Earth...) has a diagram that explains it (http://en.wikipedia.org/wiki/File:Moon_trajectory1.svg)
comment 15y ago · link · parent
Simple example: if I have a study of 20,000 people and I find that 51% of people prefer foos to bars, that may be similarly significant to your study of 20 people, all of which prefer foos to bars.
comment 15y ago · link · parent
(I have the same i5 13", it's been great)
comment 15y ago · link · parent
- using facial recognition, they determined the average number of unique people in your Facebook photos is 6.6, against an average friend count of 130.
- 80% of Skype calls are made to 2 friends
He makes a very strong point about caring about these "strong tie" relationships, both from the point of view of the user, and of Google (the company making use of the relationships you cultivate).This has implications for how you analyze Plus's success. If Plus ends up with a couple hundred million users, but an average friend count of 30 or so, I suspect Google will be just as happy, or happier, than if they achieved Facebook's level of friend count.
comment 15y ago · link · parent
I can only imagine that it's a content usage restriction, but you'd think they'd be able to lawyer their way out of it. The cable companies wouldn't even have to mimic Google's behavior- start by just allowing access to things you've personally recorded.
The future, of course, is to skip all of this nonsense and just let you stream what you want, whenever you want, and pay exactly for that. Ah, well.
comment 15y ago · link · parent
Basically, the power button is completely pointless. I might as well leave the system fully on all of the time.
If you unplug the box, it takes about 90 seconds to bring the system back.
It doesn't seem impossible to program a state where the box is sleeping, but ready to wake to record scheduled shows, etc. Of course, that would still take phantom power, but at least it wouldn't be running full-blast all the time.