Java encryption alternitive to hardcoded key

前端 未结 8 722
刺人心
刺人心 2021-02-08 13:42

I am new to encryption.

I have looked at the javax.crypto documentation and got encryption of a file to work using this code ...

File saveFile = new File         


        
8条回答
  •  甜味超标
    2021-02-08 14:29

    I do not believe that this is possible without having the user entering the key on encryption and decryption.

    You could employ some technique to make it harder to view the key without the full source code, but it would not be secure.

提交回复
热议问题