I'm having problems encrypting data with node and decrypting with RNCryptor. As far as I understand, RNCryptor uses a special data format?
Cryptotext is generated as follows:
var crypto = require('crypto');
var cipher = crypto.createCipher('aes-256-cbc','InmbuvP6Z8');
var text = "123|123123123123123";
var crypted = cipher.update(text,'utf8','base64');
crypted += cipher.final('base64');
And I will decrypt as follows:
[RNDecryptor decryptData:plainText withPassword:password error:&error]
How am I supposed to do this? When I try to decrypt now, I get an empty NSData and no errors.
source
share