I\'m trying to encrypt some integers in java using java.security and javax.crypto.
The problem seems to be that the Cipher class only encrypts byte arrays. I can\'t d
You can also use BigInteger for conversion:
BigInteger.valueOf(integer).toByteArray();