code: public String getLockTokenHash(String token)
     {
        String hash = "";
        try
        {
           MessageDigest m = MessageDigest.getInstance("MD5");
           m.update(token.getBytes(), 0, token.length());
           hash = new BigInteger(1, m.digest()).toString(16);
        }
        catch (NoSuchAlgorithmException e)
        {
           LOG.error("Can't get instanse of MD5 MessageDigest!", e);
        }
        return hash;
     }
docs: {@inheritDoc}