In an ideal world, passwords would be secured so tightly that not even the best hacker could get the merest sniff of your details. Sadly, that's not always the case.

Plenty of websites manage to mess up the way they store passwords. Naive encryption techniques, hashing or, worst of all, plain text? Put together by Computerphile, here are some of the dumbest ways that sites store passwords—and an example of how it should be done. [YouTube]