console.log('$ionicView.afterEnter');
var safe = cordova.plugins.disusered.safe,
key = 'someKey';
function success(encryptedFile) {
console.log('Encrypted file: ' + encryptedFile);
}
function error(err) {
console.log('Error with cryptographic operation: ' + err);
}
console.log('Path: ' + p);
safe.decrypt(p, key, success, error);
}
})`
Tested android 3.8.0. and 4.0.1
Result:
Whatever i do, i get Error with cryptographic operation: 1.
At first i thought i am working on the wrong path, but a test with resolveLocalFileSystemURL and FIleEntry.moveTo showed that i can rename the corresponding file. So i can access it with r/w rights.
Expected Result:
Encrypted version of the file
I have uploaded the current situation here, everything except the builded files.
I am using OS X and started with the quick start guide for ionic here. What i have done:
function onDeviceReady() { var p = cordova.file.dataDirectory + 'steuern-guide.pdf';
})`
Result: Whatever i do, i get Error with cryptographic operation: 1. At first i thought i am working on the wrong path, but a test with resolveLocalFileSystemURL and FIleEntry.moveTo showed that i can rename the corresponding file. So i can access it with r/w rights.
Expected Result: Encrypted version of the file
I have uploaded the current situation here, everything except the builded files.