decryptJson method
Implementation
Map<String, dynamic> decryptJson(String jsonEncryptado) {
final ciphertext = base64Decode(jsonEncryptado);
///Aca desarmo el jsonEncriptado y obtengo el iv y el json encryptado
final iv = Uint8List.fromList(
ciphertext.sublist(0, 16)); // Asumiendo IV de 16 bytes
final datosCifrados = Uint8List.fromList(ciphertext.sublist(16));
final paddedPlaintext = _aesCbcDecrypt(datosCifrados, iv);
final plaintext = _unpad(paddedPlaintext);
return jsonDecode(utf8.decode(plaintext));
}