From ab8d9bb79bc4781ccdc06f5f16dba6029d675e30 Mon Sep 17 00:00:00 2001
From: zzz <zzz@mail.i2p>
Date: Thu, 25 Mar 2010 19:07:35 +0000
Subject: [PATCH]     * PrivateKeyFile: Add b32 output

---
 core/java/src/net/i2p/data/PrivateKeyFile.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/java/src/net/i2p/data/PrivateKeyFile.java b/core/java/src/net/i2p/data/PrivateKeyFile.java
index c2c9d1c0ab..dc445a37ae 100644
--- a/core/java/src/net/i2p/data/PrivateKeyFile.java
+++ b/core/java/src/net/i2p/data/PrivateKeyFile.java
@@ -267,6 +267,8 @@ public class PrivateKeyFile {
         StringBuilder s = new StringBuilder(128);
         s.append("Dest: ");
         s.append(this.dest != null ? this.dest.toBase64() : "null");
+        s.append("\nB32: ");
+        s.append(this.dest != null ? Base32.encode(this.dest.calculateHash().getData()) + ".b32.i2p" : "null");
         s.append("\nContains: ");
         s.append(this.dest);
         s.append("\nPrivate Key: ");
-- 
GitLab