How to encrypt and decrypt files with bouncy castle (DES) in netbeans java?
问题 How can I encrypt and decrypt files (not strings) with bouncy castle (DESEngine)? I have searched before but could not find help. 回答1: Sorry, I have solved this by myself. Here is my code: Tesbouncy.java package tesbouncy; import org.bouncycastle.crypto.*; import org.bouncycastle.crypto.engines.*; import org.bouncycastle.crypto.modes.*; import org.bouncycastle.crypto.paddings.*; import org.bouncycastle.crypto.params.*; public class Tesbouncy { BlockCipher engine = new DESEngine(); public byte