Cordova safe error to decrypt unexpected crypto version 58


#1

I want to decrypt pdf file using Cordova safe but got an error unexpected crypto version 58 anyone know how to solve it ?


#2

How and where is the encryption being performed?


#3

I used plugin file encryption (cordova-safe) and pdf file encrypted using md5 algo in php and i want to decrypt that file in ionic app end I use this code :
var safe = cordova.plugins.disusered.safe,

  safe.decrypt('file:/storage/emulated/0/DCIM/myFile.pdf', 'secretPassword', function success(decryptedFile) {
          console.log('decrypted file:success ' + decryptedFile);
          
  }, function error(err) {
    console.log('Error with cryptographic operation decrypt'+" " + err);
  });

#4

I think you shouldn’t be near anywhere encryption, so somebody else is going to have to continue this conversation.