Crypto Cipher - AES/CBC/PKCS5Padding in Dart

How to implement AES/CBC/PKCS5Padding (which is already built in Java library for Android) in Dart to use it in a Flutter application?

I’ve tried several pub packages but with no luck yet.


import javax.crypto.Cipher;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;

        try {
            String iv = "iv";
            String secretKey = "key";
            this.iv = new IvParameterSpec(iv.getBytes());
            key = new SecretKeySpec(secretKey.getBytes(), "AES");
            cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
        } catch (NoSuchAlgorithmException | NoSuchPaddingException e) {