package com.davidhampgonsalves.identicon;

import java.security.MessageDigest;

public class MessageDigestHashGenerator implements HashGeneratorInterface {
	MessageDigest messageDigest;

	public MessageDigestHashGenerator(String algorithim) {
		try {
			messageDigest = MessageDigest.getInstance(algorithim);
		}catch(Exception e) {
			System.err.println("Error setting algorithim: " + algorithim);
		}
	}

	public byte[] generate(String input) {
		return messageDigest.digest(input.getBytes());
	}
}
@@ -5,31 +5,8 @@
 age 
-com.davidhampgonsalves.
 iden
@@ -488,8 +488,10 @@
 ;%0D%0A%09%7D%0D%0A%7D
+%0D%0A

Update MessageDigestHashGenerator.java