How to convert a non serializable object to byte array?
Posted
by Tom Brito
on Stack Overflow
See other posts from Stack Overflow
or by Tom Brito
Published on 2010-04-01T20:10:16Z
Indexed on
2010/04/01
20:23 UTC
Read the original article
Hit count: 435
java
|deserialization
I'm trying to use javax.crypto.Cipher.doFinal(byte[]) method to encrypt an object. But, for security reasons, the object cannot be serializable. So, how to convert the object to byte array without serialization?
© Stack Overflow or respective owner