Symmetric integer to integer encryption

前端 未结 5 718
一生所求
一生所求 2020-12-31 11:07

I need some pointers or a practical example on how to encrypt an int to another int, and a secret key would be required to decrypt the value.

Something like:

5条回答
  •  一个人的身影
    2020-12-31 12:03

    You want to encrypt just a single 'int' ie q 32/64 bit number?
    Then the easiest way is to just XOR it with a 32/64bit secret key.

提交回复
热议问题