storm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ar...@apache.org
Subject [1/3] storm git commit: STORM-2562: Use stronger key size than default for blow fish key generator and get rid of stack trace
Date Thu, 22 Jun 2017 01:39:25 GMT
Repository: storm
Updated Branches:
  refs/heads/master 659b59d03 -> 841445756


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/3baf61ba
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/3baf61ba
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/3baf61ba

Branch: refs/heads/master
Commit: 3baf61bad84001cd3ed21d30dc56b3df60e75e20
Parents: 4461a1d
Author: Priyank <pshah@hortonworks.com>
Authored: Tue Jun 20 12:01:13 2017 -0700
Committer: Priyank <pshah@hortonworks.com>
Committed: Tue Jun 20 12:01:13 2017 -0700

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


http://git-wip-us.apache.org/repos/asf/storm/blob/3baf61ba/storm-client/src/jvm/org/apache/storm/security/serialization/BlowfishTupleSerializer.java
----------------------------------------------------------------------
diff --git a/storm-client/src/jvm/org/apache/storm/security/serialization/BlowfishTupleSerializer.java
b/storm-client/src/jvm/org/apache/storm/security/serialization/BlowfishTupleSerializer.java
index 00cca44..7528e6d 100644
--- a/storm-client/src/jvm/org/apache/storm/security/serialization/BlowfishTupleSerializer.java
+++ b/storm-client/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();
         }
     }    
 }


Mime
View raw message