@@ -0,0 +1,649 @@
+package dotsboxes.utils;%0A%0Aimport java.io.UnsupportedEncodingException;%0Aimport java.security.MessageDigest;%0Aimport java.security.NoSuchAlgorithmException;%0A%0Apublic class Hash %7B%0A%09byte%5B%5D m_digest;%0A%09%0A%09public Hash( String login, String pass ) throws UnsupportedEncodingException, NoSuchAlgorithmException%0A%09%7B%0A%09%09String login_pass = login + pass;%0A%09%09byte%5B%5D login_pass_bytes = login_pass.getBytes(%22UTF-8%22);%0A%0A%09%09MessageDigest md = MessageDigest.getInstance(%22MD5%22);%0A%09%09%0A%09%09m_digest = md.digest(login_pass_bytes);%0A%09%7D%0A%09%0A%09public Hash(Hash other)%0A%09%7B%0A%09%09m_digest = other.m_digest;%0A%09%7D%0A%09%0A%09public boolean equals(Hash other)%0A%09%7B%0A%09%09return m_digest.equals(other.m_digest);%0A%09%7D%0A%7D%0A

add simple hash wrapper