Is there an easy way to encrypt a java object?

前端 未结 7 1398
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-06 18:14

I\'d like to store a serialized object to a file however I\'d like to make it encrypted. It doesn\'t need to be really strong encryption. I just want something easy (preferably

7条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-06 18:48

    javax.crypto.SealedObject is definitely the answer. What's the problem with the keys?

提交回复
热议问题