A simple hash code generator (SHA1 and MD5)