laduramvishnoi / kryonet

Automatically exported from code.google.com/p/kryonet
0 stars 0 forks source link

How to use the BlowfishSerializer #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Could you provide some guidance on how to implement it. I'm currently doing the 
following:

kryo.register(JSONObject.class, new 
BlowfishCompressor(kryo.newSerializer(JSONObject.class), key, 
WRITE_BUFFER_SIZE));
kryo.register(String[].class, new 
BlowfishCompressor(kryo.newSerializer(String[].class), key, WRITE_BUFFER_SIZE));

However, the newest version has changed - it's now BlowfishSerializer and also 
the way to register classes has changed. Anyhow, I may not have done it 
correctly before either. What's your advice on how to implement it? Is there 
some way to add it as a default serializer for all objects.

What version of the product are you using? On what operating system?
Currently 1.04 (above code). Would like to upgrade to the latest version.

Please provide any additional information below.
Thanks for an awesome product!

Original issue reported on code.google.com by greatf...@greatfire.org on 19 Jun 2012 at 8:53