by StavrosK · 9y ago · 0 comments
Having just gotten back from Barcelona, I have to say that the way the Spanish government is handling this is far from ideal. I don't very much support the Catalonian plea for independence (I haven't heard any good reasons other than "but our freedom"), but blocking sites seems... suboptimal.
As for the crypto itself, why not use bcrypt? Your users don't care if it takes three seconds, but it makes attacks entirely infeasible.
In the process, you make it available for anyone else who ask for it, but only for a limited time; until the Garbage Collector (GC) runs. If I remember correctly, the GC run once every hour or so, so you probably won't reshare the data for longer than that.
You need to pin the data if you want to keep resharing it. This effectively tells the GC to not touch it.