Java PBEWithMD5AndDES

后端 未结 3 1202
予麋鹿
予麋鹿 2021-02-20 05:18

I am using password based encryption. My initial thought was to use AES to encrypt the file which contains passwords. Turns out password based encryption does not support AES. I

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-20 05:47

    If you have Java 6 available, everything you need is available. Check out this question and look at the accepted answer for a code sample. Since you want to encrypt files, the iv that is generated should be prepended to the file you are writing the ciphertext to, so that it is available during the decryption.

提交回复
热议问题