EsotericSoftware / EsotericSoftware/kryonet

How to use the BlowfishSerializer

Open
#24 0 comments 0 reactions 0 assignees View on GitHub
bug imported Priority-Medium
Dominant language
Java
Stars
1.9k
Forks
411
PR merge metrics
No merged PRs in 30d

Description

_From [greatf...@greatfire.org](https://code.google.com/u/113764842826374536320/) on June 19, 2012 10:53:21_

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: http://code.google.com/p/kryonet/issues/detail?id=23_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.