I would like to encrypt a file using a symmetric key and decrypt it using the game key in java without losing data, I tried an encryption of a 56 byte file and the resultant file was 10 bytes which makes me think I'm going wrong somewhere.
Are there any tutorials on how to encrypt and decrypt files in java using a symmetric key? (and how to get said key?)