Fixed a switch without a default value that does not compile. Fixed a spe...

This code doesn't compile because it sees the cryptHandler as possibly unassigned. It looked like you wanted to default to MD5. I just added a default to the switch. Also, fixed a type.