The security of the AES encryption depends on using non-repeating IVs
(nounces) and it will result in different cyphertext.

Regards,
luben

On Thu, May 26, 2016 at 7:31 AM, kraythe <[email protected]> wrote:

> I have Been integrating this extension (which is mentioned in the Akka
> docs and is great) and I am having a problem. Basically it seems that when
> I enable the AES transform it generates a different serialized bytes each
> time which causes problems with hazelcast that uses the byte
> representations for equals. Is there a way I can encrypt the entities and
> still allow for the generated encryption to be stable? Here is my config (i
> have altered my encryption key for this post)
>
>     kryo {
>       type = "graph"
>       idstrategy = "automatic"
>       buffer-size = 4096
>       max-buffer-size = -1
>       use-manifests = false
>       post-serialization-transformations = "lz4,aes"
>       kryo-custom-serializer-init =
> "distributed.serialization.SerializationConfigUtil"
>       encryption {
>         aes {
>           mode = "AES/CBC/PKCS5Padding"
>           # TODO configure per-environment key
>           key = 6XdyUTgEDicqL6R9
>           IV-length = 16
>         }
>       }
>       implicit-registration-logging = true
>       kryo-trace = false
>     }
>
> Thanks in advance.
>
>
> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to