0

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?)

Ben Crazed Up Euden
  • 353
  • 2
  • 7
  • 18

1 Answers1

1

Here is a short nice tutorial: http://www.javamex.com/tutorials/cryptography/symmetric.shtml

Here is a related question: Java using AES 256 and 128 Symmetric-key encryption

Hope it'll help.

Community
  • 1
  • 1
Eric Wu
  • 342
  • 1
  • 3
  • 11