Changeset 13731e7


Ignore:
Timestamp:
Feb 19, 2012 8:57:44 PM (8 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
667bd466
Parents:
3fbd8b8
Message:

add b64 hash

Location:
apps/susidns/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/susidns/src/java/src/i2p/susi/dns/AddressBean.java

    r3fbd8b8 r13731e7  
    171171        }
    172172
     173        /** @since 0.9 */
     174        public String getB64()
     175        {
     176                byte[] dest = Base64.decode(destination);
     177                if (dest == null)
     178                        return "";
     179                return I2PAppContext.getGlobalContext().sha().calculateHash(dest).toBase64();
     180        }
     181
    173182        /** @since 0.8.7 */
    174183        public void setProperties(Properties p) {
  • apps/susidns/src/jsp/details.jsp

    r3fbd8b8 r13731e7  
    9595<td><a href="http://<%=b32%>/"><%=b32%></a></td>
    9696</tr><tr class="list${book.trClass}">
     97<td><%=intl._("Base 64 Hash")%></td>
     98<td><%=addr.getB64()%></td>
     99</tr><tr class="list${book.trClass}">
    97100<td><%=intl._("Address Helper")%></td>
    98101<td><a href="http://<%=addr.getName()%>/?i2paddresshelper=<%=addr.getDestination()%>"><%=intl._("link")%></a></td>
Note: See TracChangeset for help on using the changeset viewer.