James Moger
2014-04-10 d433fd3ab6185c2fb5eab998d1fcab4dd0940e5f
src/main/java/com/gitblit/transport/ssh/SshKey.java
@@ -155,8 +155,8 @@
            final byte [] bin = Base64.decodeBase64(Constants.encodeASCII(parts[1]));
            hash = StringUtils.getMD5(bin);
         } else {
            // TODO get hash from publickey
            hash = "todo";
            // TODO calculate the correct hash from a PublicKey instance
            hash = StringUtils.getMD5(getPublicKey().getEncoded());
         }
         for (int i = 0; i < hash.length(); i += 2) {
            sb.append(hash.charAt(i)).append(hash.charAt(i + 1)).append(':');