Changeset 394943c3


Ignore:
Timestamp:
Feb 26, 2012 9:15:31 PM (8 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
6ebd1f1
Parents:
6ee9b79
Message:

debug output of LS encryption key to correlate with SKM debug page

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/NetDbRenderer.java

    r6ee9b79 r394943c3  
    107107        buf.append("<h2>" + _("Network Database Contents") + "</h2>\n");
    108108        buf.append("<a href=\"netdb\">" + _("View RouterInfo") + "</a>");
    109         buf.append("<h3>").append(_("LeaseSets")).append("</h3>\n");
     109        buf.append("<h3>").append(_("LeaseSets"));
     110        if (debug)
     111            buf.append(" - Debug mode - Sorted by hash distance, closest first");
     112        buf.append("</h3>\n");
    110113        Hash ourRKey;
    111114        Set<LeaseSet> leases;
     
    170173                        median = dist;
    171174                }
    172                 buf.append(" Dist: <b>").append(fmt.format(biLog2(dist))).append("</b>");
    173                 buf.append(" RKey: ").append(ls.getRoutingKey().toBase64());
     175                buf.append(" Dist: <b>").append(fmt.format(biLog2(dist))).append("</b><br>");
     176                buf.append("Routing Key: ").append(ls.getRoutingKey().toBase64());
    174177                buf.append("<br>");
     178                buf.append("Encryption Key: ").append(ls.getEncryptionKey().toBase64().substring(0, 20)).append("...<br>");
    175179            }
    176180            for (int i = 0; i < ls.getLeaseCount(); i++) {
  • core/java/src/net/i2p/crypto/TransientSessionKeyManager.java

    r6ee9b79 r394943c3  
    626626            Set<TagSet> sets = new TreeSet(new TagSetComparator());
    627627            sets.addAll(sess.getTagSets());
    628             buf.append("<tr><td><b>Target key:</b> ").append(sess.getTarget().toBase64().substring(0, 64)).append("<br>" +
     628            buf.append("<tr><td><b>Target public key:</b> ").append(sess.getTarget().toBase64().substring(0, 20)).append("...<br>" +
    629629                       "<b>Established:</b> ").append(DataHelper.formatDuration(now - sess.getEstablishedDate())).append(" ago<br>" +
    630630                       "<b>Last Used:</b> ").append(DataHelper.formatDuration(now - sess.getLastUsedDate())).append(" ago<br>" +
Note: See TracChangeset for help on using the changeset viewer.