You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@storm.apache.org by ka...@apache.org on 2017/07/03 14:41:53 UTC

[35/40] storm git commit: STORM-2562: Use stronger key size than default for blow fish key generator and get rid of stack trace

STORM-2562: Use stronger key size than default for blow fish key generator and get rid of stack trace


Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/654ad6cb
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/654ad6cb
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/654ad6cb

Branch: refs/heads/1.1.x-branch
Commit: 654ad6cbf2a177b302c40dd9ca540ae336b69e46
Parents: 4e834f1
Author: Priyank <ps...@hortonworks.com>
Authored: Tue Jun 20 12:01:13 2017 -0700
Committer: Jungtaek Lim <ka...@gmail.com>
Committed: Thu Jun 29 16:58:22 2017 +0900

----------------------------------------------------------------------
 .../storm/security/serialization/BlowfishTupleSerializer.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/storm/blob/654ad6cb/storm-core/src/jvm/org/apache/storm/security/serialization/BlowfishTupleSerializer.java
----------------------------------------------------------------------
diff --git a/storm-core/src/jvm/org/apache/storm/security/serialization/BlowfishTupleSerializer.java b/storm-core/src/jvm/org/apache/storm/security/serialization/BlowfishTupleSerializer.java
index 8cc2f23..63788ce 100644
--- a/storm-core/src/jvm/org/apache/storm/security/serialization/BlowfishTupleSerializer.java
+++ b/storm-core/src/jvm/org/apache/storm/security/serialization/BlowfishTupleSerializer.java
@@ -80,13 +80,13 @@ public class BlowfishTupleSerializer extends Serializer<ListDelegate> {
     public static void main(String[] args) {
         try{
             KeyGenerator kgen = KeyGenerator.getInstance("Blowfish");
+            kgen.init(256);
             SecretKey skey = kgen.generateKey();
             byte[] raw = skey.getEncoded();
             String keyString = new String(Hex.encodeHex(raw));
             System.out.println("storm -c "+SECRET_KEY+"="+keyString+" -c "+Config.TOPOLOGY_TUPLE_SERIALIZER+"="+BlowfishTupleSerializer.class.getName() + " ..." );
         } catch (Exception ex) {
             LOG.error(ex.getMessage());
-            ex.printStackTrace();
         }
     }    
 }