cordova-plugin-fingerprint-aio: Failed to encrypt the data with the generated key: IllegalBlockSizeException: null

Description

  • What did you do : Code used (from Paul Halliday) :
this.fingerprintOptions = {
      clientId: "fingerprint-demo",
      clientSecret: "password",
      disableBackup: true
    };

async showFingerprintDialog() {
    try {
      await this.platform.ready();
      const available = await this.fingerprint.isAvailable();
      console.log(available);

      if (available === "OK") {
        const result = await this.fingerprint.show(this.fingerprintOptions);
        console.log(result);
      }
    }
    catch (e) {
      console.error(e);
    }
  }

Just try to use the plugin. I’m on Ionic, and there is the ionic info result :

cli packages: (/usr/lib/node_modules)

    @ionic/cli-utils  : 1.12.0
    ionic (Ionic CLI) : 3.12.0

global packages:

    cordova (Cordova CLI) : 7.0.1 

local packages:

    @ionic/app-scripts : 3.1.8
    Cordova Platforms  : android 6.4.0
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    Node              : v7.8.0
    npm               : 4.2.0 
    OS                : Linux 4.8

Misc:

    backend : pro
  • What did happen : Getting an error when fingerprint is valid : Failed to encrypt the data with the generated key: IllegalBlockSizeException: null

  • What did you expect to happen : The plugin need to return a sort of hash

  • Type of issue (bug, feature request) Bug

Environment

  • Plugin version ionic-native/fingerprint-aio: ^4.5.2 cordova-plugin-fingerprint-aio: ^1.3.4

  • Build environment (cordova info)

Node version: v7.8.0
Cordova version: 7.0.1

config.xml :
<engine name="android" spec="^7.0.0" />
<engine name="ios" spec="^4.5.4" />
<plugin name="cordova-plugin-fingerprint-aio" spec="^1.3.4" />

  • cordova platform ls Build on Linux using ionic cordova run android to an Android 8

Logs

Failed to encrypt the data with the generated key: IllegalBlockSizeException: null

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 29 (14 by maintainers)

Most upvoted comments

@NiklasMerz The issue persists after restarting the app. Even restarting the phone doesn’t help. After updating fingerprint, it is always throwing IllegalBlockSizeException. Will check further and update.

Problem fixed with newest version of the plugin.