How to encrypt/decrypt a file in Java?

前端 未结 6 1496
滥情空心
滥情空心 2021-01-16 09:07

I am writing a Java application which can \"encrypt\" and consequently \"decrypt\" whatever binary file.

I am just a beginner in the \"cryptography\" area so I would

6条回答
  •  醉梦人生
    2021-01-16 09:43

    Don't store it there! Any good encryption is based on mathematical algorithms (like AES). You may want to have a look at BouncyCastle http://www.bouncycastle.org/ - but encryption is not a simple topic, so you should get a good book to learn about its basics first!

提交回复
热议问题