My solution for the matasano challenge - set 1, challenge 4