News for hackers. Stuff that matters.
Re:How the Catalan government uses IPFS to sidestep Spain's ... by kilburn on Friday September 29, 2017 @02:35PM (#15367859)
Author here. I've tried to keep the article as apolitical as possible, while giving some context to provide the setting.

Anyway, I'm very interested in knowing if the used crypto is sound or not, and stirring a discussion around possible alternative approaches.

Ask me anything if you want to know further!

Re:How the Catalan government uses IPFS to sidestep Spain's ... by red_admiral on Friday September 29, 2017 @03:26PM (#15368340)
The crypto is far from ideal.

The situation is very similar to password storage, where you want to not make it trivial to brute-force moderate-entropy passwords even if your database gets breached. We have functions designed specifically for that: scrypt, argon2 etc. https://www.npmjs.com/package/scryptsy is a pure JS implementation of scrypt for example.

Even with scrypt the situation is not great, but using sha for this kind of thing is no longer state of the art. If people are willing to (a) download and run a program rather than rely on the browser and (b) willing to wait half a minute or so for the result then you could easily tune the scrypt/argon parameters up to 11 but at the cost of quite a bit in the way of usability. If "must work on smartphones without extra app downloads" is a requirement you're pretty limited in what you can do this way.

Another solution might be to use real servers but host them on the "dark web" - get Tor a bit of publicity in Catalunya!

EDIT: in response to a few posts that briefly appeared and then disappeared again - IPFS is fine. SHA256 for authenticating a page is fine. I'm only objecting to using raw SHA-anything as a key derivation function as in the section "A static database".

Re:How the Catalan government uses IPFS to sidestep Spain's ... by timthelion on Friday September 29, 2017 @03:41PM (#15368475)
I'm not sure what you mean by "the crypto is not ideal"? I was under the impression that there are not yet collisions for SHA-256 https://github.com/ipfs/faq/issues/22

Only for SHA-1 (which has 160 bit hashes) https://en.wikipedia.org/wiki/SHA-1#Attacks

Re:How the Catalan government uses IPFS to sidestep Spain's ... by red_admiral on Friday September 29, 2017 @03:58PM (#15368621)
The attack mentioned on the page is brute-forcing someone's details from partial information:

"it can be used to “fill the gaps” of information about any citizen. If you know someone’s birth date and the area where they live, you can obtain their government ID by trial-and-error on that website."

The mitigation is slowing down the number of guesses/second that an attacker can try. In a well-designed key derivation function, an attacker with 100x the resources should only be able to try out guesses 100x as fast. That's what scrypt/argon2/bcrypt/PBKDF2/... try and achieve.

SHA and other general-purpose hash functions tend to be easy to parallelize, at least in parts, and you can get huge speedups on GPUs or even better, FPGAs/ASICs. That's why no-one serious still mines bitcoins on CPUs and the big mining syndicates [hire planes](http://uk.businessinsider.com/cryptocurrency-miners-rent-boe...) to ship GPUs a little bit faster.

This has nothing to do with collisions. It's to do with hash functions being designed to be fast, and key derivation functions are designed to be slow and memory-hard.

Re:How the Catalan government uses IPFS to sidestep Spain's ... by samstave on Friday September 29, 2017 @05:24PM (#15369357)
Holy shit! People are hiring planes to ship them GPUs!?

Jeasus!! Gibson was far more prescient than acknowledged;

"the future is already here, but not evenly distributed yet"

Wow...

I had such opportunity and ability to buy bitcoins in 2012... and I missed that boat.

Re:How the Catalan government uses IPFS to sidestep Spain's ... by rangibaby on Friday September 29, 2017 @08:26PM (#15370386)
I downloaded the Bitcoin mining app in 2010, opened it once, got bored of waiting for it to sync with some server, then shut and forgot about it for a few years. It might be a funny story to tell my grandkids if BTC is still around
Re:How the Catalan government uses IPFS to sidestep Spain's ... by saimiam on Friday September 29, 2017 @10:17PM (#15370819)
If Bitcoin is around when your grandkids are of age, even this minute might be a great time to buy Bitcoin. Why miss the same boat twice?
Re:How the Catalan government uses IPFS to sidestep Spain's ... by kebman on Saturday September 30, 2017 @07:46AM (#15372410)
Hope what you say is true, because I bought bitcoin @ $4700 :'(
Re:How the Catalan government uses IPFS to sidestep Spain's ... by unkown-unknowns on Saturday September 30, 2017 @09:24AM (#15372753)
Like they say; "The best time to buy bitcoin was yesterday. The next-best time to buy bitcoin is now."
Re:How the Catalan government uses IPFS to sidestep Spain's ... by runeks on Sunday October 01, 2017 @02:16PM (#15379050)
> I had such opportunity and ability to buy bitcoins in 2012... and I missed that boat.

You also have opportunity and ability to buy bitcoins now. And, just like in 2012, you have no idea what the price will be five years into the future.

Re:How the Catalan government uses IPFS to sidestep Spain's ... by sneak on Sunday October 01, 2017 @10:01AM (#15377848)
No, they’re not. They’re just overnighting large shipments of GPUs with carriers that use airplanes to handle overnight shipping.

That quote also isn’t from Gibson. :)

Re:How the Catalan government uses IPFS to sidestep Spain's ... by ameliaquining on Saturday September 30, 2017 @07:45PM (#15375587)
This isn't as big a deal as it sounds. https://news.ycombinator.com/item?id=14887929
Re:How the Catalan government uses IPFS to sidestep Spain's ... by cvwright on Friday September 29, 2017 @06:52PM (#15369937)
Yup. For one example of a software package that can use GPUs to accelerate password cracking and hash brute forcing, folks can look at hashcat: https://hashcat.net/hashcat/
Re:How the Catalan government uses IPFS to sidestep Spain's ... by timthelion on Friday September 29, 2017 @04:26PM (#15368828)
Thanks for the clarification. That makes sense now.
Re:How the Catalan government uses IPFS to sidestep Spain's ... by hamilyon2 on Saturday September 30, 2017 @12:00PM (#15373479)
Just fill 9/10 of database with plausible crap. It would be pretty useless to brute-force it (and any part of it) then.
Re:How the Catalan government uses IPFS to sidestep Spain's ... by trapperkeeper74 on Saturday September 30, 2017 @02:18AM (#15371529)
Scrypt is tweakable for RAM and runtime constraints. From that PBKDF, it would make sense to use something like HMAC-SHA2 with another magic nonce, and then private information plus previous PBKDF output hash together as the authenticated part. If you want to get really tricky, add another random secret hash.

And, they probably should’ve used HMAC-SHA2 to derive the public primary index key insead of a hash function directly.

Re:How the Catalan government uses IPFS to sidestep Spain's ... by kordlessagain on Friday September 29, 2017 @07:08PM (#15370041)
Thanks for the article. After reading it, I went and added an IPFS node to my Kubernetes deployment on Google Cloud and then mapped the /ipfs and /ipns endpoints through Kong so they would be served by https://api.wisdom.sh/<ipfs|ipns>/. This effectively gives people yet another domain they can use which doesn't require installing the IPFS client. Any IPFS site wil work through the proxy, but here's the site under discussion: https://api.wisdom.sh/ipns/QmZxWEBJBVkGDGaKdYPQUXX4KC5TCWbvu...

If anyone wants the scripts I used to build up the system, let me know. Here's the Kubernetes YAML I used: https://gist.github.com/kordless/5625ae8abf3d3f14dd3f9c9d500...

Re:How the Catalan government uses IPFS to sidestep Spain's ... by HarfTarf on Friday September 29, 2017 @07:36PM (#15370176)
https://ipfs.github.io/public-gateway-checker/ It would be nice to add your gateway to the list.
Re:How the Catalan government uses IPFS to sidestep Spain's ... by unkown-unknowns on Saturday September 30, 2017 @09:31AM (#15372781)
It took a very long time to load the page. Consider implementing some caching if you haven't already.
Re:How the Catalan government uses IPFS to sidestep Spain's ... by kordlessagain on Saturday September 30, 2017 @11:45AM (#15373382)
I think it's because the named version is being used (ipns) which may or may not be involving a lot of requests to the network to resolve (perhaps to the main node even). I've resolved and pinned the original content here: https://api.wisdom.sh/ipfs/QmXj5GjZ8WApwq79EyAeNZ2E6pQkJmbrj...
Re:How the Catalan government uses IPFS to sidestep Spain's ... by diggan on Friday September 29, 2017 @03:06PM (#15368194)
Alternative approach: Instead of using the IPFS2HTTP gateways (that can easily be censored, as gateway.ipfs.io has already been censored in Catalunya), run a IPFS daemon locally that cannot be censored (but is not anonymous either).

I live in Catalunya and wrote this tool for doing just that, in a easy way. It 1) starts a go-ipfs daemon locally, 2) opens up the referendum website in your default browser, via localhost.

If you're interested in accessing the website from inside Catalunya, give it a try: https://git.io/vdGUx

Re:How the Catalan government uses IPFS to sidestep Spain's ... by kodablah on Friday September 29, 2017 @03:28PM (#15368361)
> that cannot be censored

I am not familiar with IPFS internals, but is there no pattern to the IPFS traffic that the ISPs can shape/block?

Too bad about the entire IPFS domain being blocked, because besides the host, HTTPS traffic has safety in numbers. If only there was a way to proxy through google.com or some other popular domain too important to block.

Re:How the Catalan government uses IPFS to sidestep Spain's ... by tonyztan on Friday September 29, 2017 @08:21PM (#15370367)
> If only there was a way to proxy through google.com or some other popular domain too important to block.

There is. Domain fronting is used in China to circumvent the Great Firewall. The concept you are talking about is collateral freedom.

https://en.wikipedia.org/wiki/Domain_fronting

https://en.wikipedia.org/wiki/Collateral_freedom

Re:How the Catalan government uses IPFS to sidestep Spain's ... by lgierth on Sunday October 01, 2017 @11:39AM (#15378322)
Thanks for mentioning domain fronting! It's also been used by Signal to circumvent communications censorship in Egypt [1]. We want to bring domain fronting to IPFS by making libp2p's websockets transport capable of it. [2]

Fun fact: advanced networking setups like domain fronting are impossible to address in a URL/URI scheme. Check out multiaddr :) [3] A domain-fronted service could be addressed as something like `/dns4/google.com/tcp/443/tls/sni/google.com/http/example.com/ws`

[1] https://signal.org/blog/doodles-stickers-censorship/

[2] https://github.com/libp2p/libp2p/issues/18

[3] https://github.com/multiformats/go-multiaddr

Re:How the Catalan government uses IPFS to sidestep Spain's ... by toomuchtodo on Friday September 29, 2017 @04:23PM (#15368811)
> If only there was a way to proxy through google.com or some other popular domain too important to block.

Host IPFS nodes with http proxies on GCP and point the domain with multiple A records at those instances?

Re:How the Catalan government uses IPFS to sidestep Spain's ... by confounded on Friday September 29, 2017 @04:37PM (#15368954)
This is basically how Signal avoid being blocked in (IIRC) Saudi Arabia.
Re:How the Catalan government uses IPFS to sidestep Spain's ... by SEJeff on Friday September 29, 2017 @05:08PM (#15369222)
Yup.

The magic term for others to google is "domain fronting". Here is a bit more info:

http://www.geektime.com/2016/12/23/signal-updates-protect-th...

Re:How the Catalan government uses IPFS to sidestep Spain's ... by confounded on Friday September 29, 2017 @07:52PM (#15370249)
Ah, too late to edit, but it was Egypt and the United Arab Emirates (apologies).
Re:How the Catalan government uses IPFS to sidestep Spain's ... by samstave on Friday September 29, 2017 @05:03PM (#15369191)
More info please
Re:How the Catalan government uses IPFS to sidestep Spain's ... by finnn on Friday September 29, 2017 @05:14PM (#15369279)
Re:How the Catalan government uses IPFS to sidestep Spain's ... by samstave on Friday September 29, 2017 @05:28PM (#15369390)
You cheeky bastard... but thank you.
Re:How the Catalan government uses IPFS to sidestep Spain's ... by zardo on Friday September 29, 2017 @05:30PM (#15369404)
IPFS is P2P and very delay tolerant. It can run on a sneaker-net.
Re:How the Catalan government uses IPFS to sidestep Spain's ... by TeMPOraL on Friday September 29, 2017 @04:08PM (#15368698)
They'd have to block it close to endpoints, because IPFS is a P2P system.
Re:How the Catalan government uses IPFS to sidestep Spain's ... by kodablah on Friday September 29, 2017 @06:09PM (#15369679)
I don't think that's tough if a country has said you need to be able to filter traffic. Assuming it is a simple pattern (e.g. whatever their NAT busting bootstrap is), set of ports, etc they could easily push filter rules to their downstream network devices if the law makes them.
Re:How the Catalan government uses IPFS to sidestep Spain's ... by tylersmith on Friday September 29, 2017 @08:36PM (#15370427)
You can help with the anonymity with the Tor transport. We created it to enable OpenBazaar nodes to use our network over Tor.

https://github.com/OpenBazaar/go-onion-transport

Re:How the Catalan government uses IPFS to sidestep Spain's ... by couchand on Friday September 29, 2017 @10:55PM (#15370953)
I tried to go get your project, but got a bunch of "unrecognized import path" errors. Looks like you're pulling a dependency off of IPFS, do I need to set something up for that to work correctly?
Re:How the Catalan government uses IPFS to sidestep Spain's ... by lgierth on Sunday October 01, 2017 @11:47AM (#15378346)
You're likely missing gx, the package manager used by IPFS and many projects in its community. Try:

    go get github.com/whyrusleeping/gx
    
    go get github.com/whyrusleeping/gx-go
    
    cd your-project/
    
    gx install
    
    go build // or whatever you were doing :)
Re:How the Catalan government uses IPFS to sidestep Spain's ... by enriquto on Friday September 29, 2017 @03:43PM (#15368496)
being a catalan expat with some expertise in computers, is there any useful way that i can help this weekend? (I am not afraid of losing anonymity nor being condemned or prosecuted by the spaniards, I actually would find it rather amusing.)
Re:How the Catalan government uses IPFS to sidestep Spain's ... by StavrosK on Friday September 29, 2017 @07:44PM (#15370219)
Download and run the IPFS daemon for your OS (from ipfs.io) and access the banned websites/files locally. That will make you serve them to other people.

There's a set of them on the pinning service I run (https://www.eternum.io/ipns/QmZxWEBJBVkGDGaKdYPQUXX4KC5TCWbv...), so they're in no danger of disappearing, but you'd help in case Spain banned the eternum.io node.

Re:How the Catalan government uses IPFS to sidestep Spain's ... by kwhitefoot on Saturday September 30, 2017 @12:06PM (#15373510)
> access the banned websites/files locally

What exactly does this mean?

Do you mean by accessing this address:

https://ipfs.io/ipns/QmZxWEBJBVkGDGaKdYPQUXX4KC5TCWbvuR4iYZr...

Re:How the Catalan government uses IPFS to sidestep Spain's ... by StavrosK on Saturday September 30, 2017 @02:33PM (#15374300)
Re:How the Catalan government uses IPFS to sidestep Spain's ... by kwhitefoot on Sunday October 01, 2017 @03:06AM (#15376758)
Thanks.
Re:How the Catalan government uses IPFS to sidestep Spain's ... by enriquto on Saturday September 30, 2017 @11:47AM (#15373395)
i'm doing this since this morning, there is actually a lot of traffic!
Re:How the Catalan government uses IPFS to sidestep Spain's ... by KuiN on Friday September 29, 2017 @05:17PM (#15369301)
I'd be interested in any way to help out too. As part of the Scottish independence movement, our Catalonian counterparts are comrades & allies. Other than solidarity protests over here, I'd love to help in some way.
Re:How the Catalan government uses IPFS to sidestep Spain's ... by gerdesj on Friday September 29, 2017 @08:51PM (#15370496)
Its a funny old world mate (I'm English) and I despise seeing censorship like this. I will also see what I can find in my toy box to assist Catalunya in expressing themselves democratically.

(I would rather GB stayed in one piece but if push came to shove, I'd probably do the same here in similar circumstances - there is no excuse for this heavy handed nonsense)

Re:How the Catalan government uses IPFS to sidestep Spain's ... by KuiN on Friday September 29, 2017 @09:20PM (#15370619)
It's not often I find myself agreeing with a UK unionist but it's a point of honour that the Scottish referendum 2014 passed off largely as an orderly point of democracy. Westminster is often seen as heavy-handed North of the border but everyone is proud of that expression of democracy (however there are still words to be had about subsequent political events!).
Re:How the Catalan government uses IPFS to sidestep Spain's ... by petre on Saturday September 30, 2017 @01:50AM (#15371458)
At least the UK gov't wasn't banning Scottish referendum websites.
Re:How the Catalan government uses IPFS to sidestep Spain's ... by joeyspn on Saturday September 30, 2017 @12:54PM (#15373747)
No, but Tony Blair suspended the Northern Ireland assembly several times and reimposed direct rule from London, which is probably where the Catalan issue is headed, because everything is illegal from the state's point of view.

Texas has had secessionist movements also for some time, but it'd be also illegal to do a binding referendum, and Washington would take the required steps to stop it.

https://www.texastribune.org/2016/06/24/can-texas-legally-se...

Re:How the Catalan government uses IPFS to sidestep Spain's ... by neoscott on Saturday September 30, 2017 @04:02AM (#15371817)
Because was a legal referendum from the UK government, it's very different with the Catalonia referendum
Re:How the Catalan government uses IPFS to sidestep Spain's ... by morgante on Saturday September 30, 2017 @04:40AM (#15371907)
The notion of a referendum being "illegal" is farcical. No democracy should prohibit people from deciding to get together and conduct a poll on something.
Re:How the Catalan government uses IPFS to sidestep Spain's ... by dane-pgp on Saturday September 30, 2017 @06:29PM (#15375312)
The idea of a referendum being "illegal" may be counter-intuitive, but I don't think the situation is as simple as you suggest.

For example, secession (not to mention sedition or treason) is illegal in many jurisdictions, and is a natural thing for sovereign countries to want to prevent. It is also natural for the sovereign central government of a country to put limits on what a regional government can and cannot do, with the usual principle being that the regional government cannot do anything outside of the powers specifically given it by the central government (regardless of what powers the inhabitants of that region want).

You're right that "people" could "get together and conduct a poll on something", but if this was informally conducted it would be hard to prevent double voting, and not accidentally disenfranchising certain people, and there would be little recourse against these self-appointed pollsters stuffing their home-made ballot boxes.

At the same time, if a regional government spent money, or used people's personal information, for a purpose they were not legally permitted to, then those would potentially be crimes themselves, regardless of the issue of secession.

The questions worth debating are "How much autonomy should regions of sovereign countries be given?", and "If a region isn't legally given that much autonomy, what is most peaceful and just means for that region to attain it?"

Re:How the Catalan government uses IPFS to sidestep Spain's ... by morgante on Sunday October 01, 2017 @03:52PM (#15379459)
Secession can certainly be illegal, but that simply means any outcome of an unsanctioned referendum is legally irrelevant.

As far as I can tell, Spain is going to great lengths to curtail the rights of citizens to express their opinions on secession. They're free to ignore the outcome of this vote, but raiding ISPs, shutting down political pamphlets, and reading private mail are not the actions of a democratic country—they're tactics straight out of an authoritarian regime.

Secession is also illegal in the US (and we fought a war to prove it), but you don't see federal agents arresting people for starting ballot initiatives in California or shutting down Vermont secession websites.

Re:How the Catalan government uses IPFS to sidestep Spain's ... by kgwgk on Sunday October 01, 2017 @04:20PM (#15379587)
Neither do you see the government of California or Vermont organising a binding vote to secede from the US in 48 hours (while maintaining the US citizenship!).
Re:How the Catalan government uses IPFS to sidestep Spain's ... by literallycancer on Sunday October 01, 2017 @02:04PM (#15378964)
How should countries be created then? If the central government doesn't let you do it legally and peacefully, that's on them.
Re:How the Catalan government uses IPFS to sidestep Spain's ... by neoscott on Saturday September 30, 2017 @07:14AM (#15372301)
The same people that are doing the referedum seized with the police ballot boxes and ballots for a vote in 2013
Re:How the Catalan government uses IPFS to sidestep Spain's ... by enriquto on Saturday September 30, 2017 @07:31AM (#15372353)
many thanks to both of you! it's reassuring to see there's still civilized people out there!
Re:How the Catalan government uses IPFS to sidestep Spain's ... by lottin on Friday September 29, 2017 @06:58PM (#15369976)
Just expressing your solidarity is more than enough. It seems silly but it really gives us strength and determination.
Re:How the Catalan government uses IPFS to sidestep Spain's ... by KuiN on Friday September 29, 2017 @09:22PM (#15370623)
Radical Independence Scotland and friends will be outside the Spanish embassy in Edinburgh, all of Sunday; we absolutely support your right to self determination as the Catalans did during our recent bids for independence. Solidarity, comrade.
Re:How the Catalan government uses IPFS to sidestep Spain's ... by tbatchelli on Friday September 29, 2017 @05:33PM (#15369425)
This is a very interesting real world use of IPFS. Is this the first real world & large scale use of it?

So far it seems it is delivering on its promise: I was able to find my voting station. Too bad I am a continent and and ocean away from home :(

Re:How the Catalan government uses IPFS to sidestep Spain's ... by panarky on Friday September 29, 2017 @03:13PM (#15368245)
> Catalan officials can just distribute the hash of the main page file, and everyone else can be sure that all content linked from that file has been published by the catalan authorities.

How does the hash of the main page guarantee that content linked from that page is authentic?

Re:How the Catalan government uses IPFS to sidestep Spain's ... by kilburn on Friday September 29, 2017 @03:22PM (#15368312)
Well, that assumes that all content is linked within ipfs too (which is the case here). Does that clarify it or should I explain further?
Re:How the Catalan government uses IPFS to sidestep Spain's ... by QML on Friday September 29, 2017 @03:50PM (#15368557)
If the Spanish government wants to redirect or modify the contents of the page, then you would get a different hash than the one provided by Catalan officials.
Re:How the Catalan government uses IPFS to sidestep Spain's ... by euyyn on Friday September 29, 2017 @06:04PM (#15369650)
How do IPFS links work, such that modification of what they point to modifies the hash of the document where the link is?
Re:How the Catalan government uses IPFS to sidestep Spain's ... by drabiega on Friday September 29, 2017 @06:20PM (#15369739)
IPFS is immutable and hash addressed, so 'modifying' something yields a new address. Existing documents that point to the modified thing will still point to the old version, unless their links change as well. Effectively, sharing a hash address to the main page is sharing a snapshot of the site.
Re:How the Catalan government uses IPFS to sidestep Spain's ... by mcguire on Saturday September 30, 2017 @10:51AM (#15373086)
It's essentially the same technique as git.
Re:How the Catalan government uses IPFS to sidestep Spain's ... by acover on Friday September 29, 2017 @06:14PM (#15369706)
There are two types of links in ipfs. Static content that works by hash of the content. Dynamic content that is signed by the owner of the bucket.... I think I haven't looked at it for months
Re:How the Catalan government uses IPFS to sidestep Spain's ... by tylersmith on Friday September 29, 2017 @08:40PM (#15370447)
You use IPNS to give a static name and change the root hash of that name when you update content.
Re:How the Catalan government uses IPFS to sidestep Spain's ... by mattj1 on Friday September 29, 2017 @03:20PM (#15368295)
Nice summary! Definitely an interesting use case, the first real world practical application for IPFS that I've seen.
Re:How the Catalan government uses IPFS to sidestep Spain's ... by alwillis on Friday September 29, 2017 @06:09PM (#15369682)
Perhaps you missed it when IPFS was used to make the Turkish version of Wikipedia available after the Turkish government blocked access the Wikipedia website: http://observer.com/2017/05/turkey-wikipedia-ipfs/
Re:How the Catalan government uses IPFS to sidestep Spain's ... by ajnin on Friday September 29, 2017 @07:40PM (#15370199)
You say "the code recurses a sha256 computation 1714 times to get a password for decryption, and then once more to get the lookup key", however in the code above the search string is computed as var search = sha256(key);, note it's using key and not passkey, which means, assuming that is correct, only one round of sha256, so roughly 1715 times faster to crack.

It seems weird that the sensitive part (ID number + birth date + post code) would be encrypted the most weakly, and the public part (voting station) would be encrypted the most strongly. Maybe I'm reading this wrong or the code author involuntarily made his encryption quite weaker.

Re:How the Catalan government uses IPFS to sidestep Spain's ... by kilburn on Friday September 29, 2017 @08:12PM (#15370335)
The text was right, but I made a mistake writing key there when it should have been passkey. It is fixed now, thank you for noticing!
Re:How the Catalan government uses IPFS to sidestep Spain's ... by carlesm on Saturday September 30, 2017 @03:58AM (#15371805)
Althought crypto is not hard to beat, specially knowing some user data, that is not also an issue.

The only information you would get by knowing some of that data is where somebody is supposed to vote. An information you can already infer from the Zip code. There are, at most, four possible voting sites for each zip code. In some (several) small/medium villages there is only one voting site, so, not to much to learn from decrypting.

Besides, the census (voting places) information is usually (in normal elections), placed (via paper printed listings) on voting places. And there there is more information (full name, for example).

Re:How the Catalan government uses IPFS to sidestep Spain's ... by setzer22 on Saturday September 30, 2017 @04:41AM (#15371909)
This may have been stated already, but the DNI final character is a control one, it can be computed from the characters and the algorithm is well-known. So there should be no need to brute-force it.
Re:How the Catalan government uses IPFS to sidestep Spain's ... by geofft on Friday September 29, 2017 @03:33PM (#15368394)
Out of curiosity, where on the actual website is the crypto code? (It's way harder to follow than your simplified version :) )

Also how are they distributing the initial hash - physical signs? I figure the easiest threat from Spain is to get people to show up to the wrong polling stations, which don't have them on the voter rolls, and then cast doubts on the validity of a referendum that has a huge number of provisional ballots. Since you don't actually need to staff polling stations, this attack only really requires a single person setting up a cloned website and distributing a different hash (although it gets easier if e.g. the postal service is willing to help you send out the wrong hash).

Re:How the Catalan government uses IPFS to sidestep Spain's ... by kilburn on Friday September 29, 2017 @03:45PM (#15368509)
The code is in the bundled file at [1] (look for the "calcular" function).

The hash was distributed in URL form through twitter by both the Catalan president [2] and the catalan economy minister (who is the 2nd in command actually) [3].

[1] https://ipfs.io/ipns/QmZxWEBJBVkGDGaKdYPQUXX4KC5TCWbvuR4iYZr...

[2] https://twitter.com/KRLS/status/911482634789953536

[3] https://twitter.com/junqueras/status/913010751429840896

Re:How the Catalan government uses IPFS to sidestep Spain's ... by amongwhales on Friday September 29, 2017 @05:14PM (#15369277)
fyi: Advantages is misspelled as advanta(d)ges in Paragraph ~6 under "A website stored in IPFS"

Thanks! This is a great read

Re:How the Catalan government uses IPFS to sidestep Spain's ... by kilburn on Friday September 29, 2017 @05:34PM (#15369433)
I actually thought it was spelled that way :S Corrected, thank you!
Re:How the Catalan government uses IPFS to sidestep Spain's ... by vanderZwan on Saturday September 30, 2017 @07:22AM (#15372319)
Ironically, your website is blocked the the network of my university: https://imgur.com/a/fJxvX
Re:How the Catalan government uses IPFS to sidestep Spain's ... by pmarreck on Saturday September 30, 2017 @10:26AM (#15372971)
I love this story. Just wanted to say that.