Archive

Archive for July, 2009

Almost oops

July 22nd, 2009 No comments

Some time ago I still intended to write my own blog system, instead of using WordPress. I don’t think I ever will, but sometimes still feel the urge to do so, just for the fun of it.

Anyway, at that time I was thinking of some secure way to store passwords. With all the news around md5 and sha1 being ‘broken’, I thought I needed something different. And in all my limited knowledge of proper security I thought of something that seemed rather nice, but really is a bit stupid.

What I thought of using was a combination of both, not storing the sha1 of the password, because collisions were being found and such. But instead storing the md5 and sha1…

I guess by now any person with a bit of security experience would start laughing at me (if any such person is to ever read this post), because it has the exact opposite effect of what I was trying to achieve. Instead of adding security, I was removing it.

By storing both (how doesn’t really matter), one would only have to find a password with the correct md5 and then verify if the sha1 is valid as well… And we all know, finding a password with a valid md5 is much easier then finding one with a valid sha1.

There is something this can be used for I think, but not for adding security to encryption. What it can be used for is for validation of files and such. If you validate a file using both the md5 and sha1, you can be rather sure the file is (still) what it is supposed to be.

What I had in mind is difficult to fake but easy to break.

Tags: ,

Fiets!

July 22nd, 2009 No comments

Waarom gaan zo weinig mensen op de fiets naar hun werk?

Tuurlijk, als je 40 km. van je werk woont snap ik dat je niet graag op de fiets gaat. Maar er zijn hele hordes die elke dag 5 km. met auto rijden om naar hun werk te gaan, of minder nog. Zelf fiets ik bijna elke dag naar m’n werk, zo’n 10 km. heen en weer terug. Goed te doen toch? Kost me ongeveer 30 min. (enkele reis), met de auto is het niet veel sneller.

Ja, ook als het regent of sneeuwt snap ik dat je liever met de auto gaat. Maar zo vaak regent of sneeuwt het nu ook weer niet in Nederland. Ik denk dat ik per jaar ongeveer 15x m’n regenpak aan moet trekken, veel vaker zal het niet zijn.

Dagelijks zie je rijen auto’s voorbijkomen met 1 persoon erin, fijn achter elkaar aan, van stoplicht naar stoplicht, dampende uitlaatgassen blazend… ook als het mooi weer is.

Fietsen is ook nog eens goedkoper, gezonder en beter voor het milieu.
We moeten allemaal op de centjes letten, want het is crisis; nou ga fietsen zou ik zeggen. We moeten allemaal sporten, met de auto naar de sportschool, of naar een bos om te hardlopen; ga fietsend naar je werk zou ik zeggen. Auto’s moeten zuiniger en milieu vriendelijkere brandstoffen gebruiken; je auto is het zuinigst als je gaat fietsen (een gemiddeld verbruik van 0,0).

Het zal wel gemakzucht zijn.

Tags: , ,