Fast, simple to use symmetric cipher for integer encryption in Java

后端 未结 3 2047
误落风尘
误落风尘 2021-02-10 03:15

What is in Java a cipher function for integer encryption having these properties?:

  • Fast
  • Symmetric-key algorithm
  • Simple to use (i.e. a couple of
3条回答
  •  清酒与你
    2021-02-10 03:21

    You should never implement a cipher yourself if you want any security. There's just too much what can get wrong.

    But you can write your numbers into a byte[] and use a cipher provided with Java like described in this answer.

提交回复
热议问题