Encryption and decryption with AES/ECB/PKCS7Padding : Encryption « Security « Java JavaSecurityEncryptionEncryption and decryption with AES/ECB/PKCS7Padding import java.security.Security; import javax.crypto.Cipher; import javax.crypto.spec.SecretKeySpec; public class MainClass { public static void main(String[] args) throws Exception { Security.addProvider(new org.bouncycastle.jce.provider.Bouncy