public static String asSemiUniqueName(final PublicKey publicKey) {
        final byte[] bytes = publicKey.getEncoded();
        final Adler32 checksum = new Adler32();
        checksum.update(bytes,0,bytes.length);
        return Long.toHexString(checksum.getValue());
    }
Generate a short semi-unique string to identify a public key.

This method uses a very short checksum algorithm. The benefit of this is that the generated values are
human-readable. The downside is that the generated values are not truly unique to the public key. As this method
is part of unit testing, that should not be to much of a problem.

@param publicKey For which to generate an identifier
@return an identifier
xmppserver/src/test/java/org/jivesoftware/openfire/keystore/KeystoreTestUtils.java