An easy-to-use, Objective-C interface to the AES functionality of CommonCrypto. Simplifies correct handling of password stretching (PBKDF2), salting, and IV.
Questions tagged [rncryptor]
87 questions
12
votes
1 answer
Creating framework that requires (depends on) another framework
I'd like to create a framework using Cocoa Touch Framework Project in Swift. However, I'm building this framework on top of another framework called RNCryptor, which is Objective-C based. I've seen various tutorials on how to create a framework in…

Donn
- 1,680
- 14
- 17
9
votes
4 answers
Memory issues when encrypting/decrypting a large file with RNCryptor on iOS
I'm trying to use RNCryptor to encrypt and decrypt large files (600+MB) on iOS. On the github I found example code on how to use the library asynchronously on streams. This code is similar to the answer of Rob Napier on a question about this same…

Johanneke
- 5,443
- 4
- 20
- 33
7
votes
3 answers
Dispatch queues and asynchronous RNCryptor
This is a follow-up to Asynchronously decrypt a large file with RNCryptor on iOS
I've managed to asynchronously decrypt a large, downloaded file (60Mb) with the method described in this post, corrected by Calman in his answer.
It basically goes like…

Cyrille
- 25,014
- 12
- 67
- 90
7
votes
1 answer
RNCryptor not working with JSON string
Here are my method's to use RNCryptor to encrypt/decrypt a JSON string that I am sending to the web service. I am using a static IV variable which may be bad practice but please don't focus on that. Here is how I'm doing it:
Note: I'm using Matt…

mkral
- 4,065
- 4
- 28
- 53
6
votes
2 answers
Error when code signing .framework
I have used CocoaPods to install the RNCryptor framework. Which has worked perfectly on my application, and when archiving the application manually through xcode works perfectly.
But when I try archive using terminal with the command:
xcodebuild…

maxisme
- 3,974
- 9
- 47
- 97
5
votes
1 answer
Convert image loaded as binary string into numpy array
Is there a method to convert an image, that is loaded as a binary string, into a numpy array of size (im_height, im_width, 3)? Something like this:
# read image as binary string
with open(img_path, "rb") as image_file:
image_string =…

Thomas
- 705
- 6
- 21
5
votes
2 answers
Undefined symbols for architecture armv7 after importing RNCryptor
I imported RNCryptor, which can be found here: https://github.com/rnapier/RNCryptor into my app. However, I've been getting three errors with this in the log.
Undefined symbols for architecture armv7:
"_SecRandomCopyBytes", referenced from:
…

Regan
- 1,487
- 2
- 28
- 43
4
votes
2 answers
How to encrypt in node.js and decrypt with RNCryptor
I'm having trouble encrypting data with node and decrypting with RNCryptor. My understanding is that RNCryptor uses a special data format?
The cryptotext is being generated as follows:
var crypto = require('crypto');
var cipher =…

Jack Rogers
- 305
- 3
- 14
4
votes
2 answers
RNCryptor: Which settings to change to improve performance?
I have a lot of short strings to decrypt in my app and decryption speed is critical.
Currently I am experimenting with RNCryptor but find its default settings a bit slow for my use case. Otherwise it is an awesome framework :-)
Encryption will be…

AlexR
- 5,514
- 9
- 75
- 130
4
votes
1 answer
RNCryptor IOS + Javascript encryption / decryption AES 256
I am new to encryption and i am trying to get some symmetric encryption usign AES256 going from a mobile app to a webpage through websockets.
I Encrypt the data using RNCryptor default settings
IOS CODE
NSString* message = @"testmessage";
…

adrian.coroian
- 582
- 4
- 13
4
votes
1 answer
AES encryption/decryption for a beginner
I am trying to encrypt an NSString to both NSString and NSData in Objective-C and so I began a search.
I started off here, but that went way over my head, unfortunately.
I then found myself at this post and it came across to be very easy to follow,…

RileyE
- 10,874
- 13
- 63
- 106
4
votes
1 answer
RNCryptor and Python server
I'm using RNCryptor to encrypt NSData on iOS and send it to a Python server. So far, so right. My problem comes when I try decrypt NSData on server side.
RNCryptor embeds all relevant data in encrypted header, but I can not get the IV in the server…

mhergon
- 1,688
- 1
- 18
- 39
3
votes
1 answer
CoreData: ValueTransformer functions are not called
I'm storing some key/value-pairs as Strings in CoreData which - in a newer version - should now be encrypted. To not alone relying on Apples DataProtection I now want to encrypt the data before storing with RNCryptor and with the help of the…

Marc
- 73
- 1
- 5
2
votes
2 answers
RNCryptor is not decrypting in iOS
I am using RNCryptor in my application. I generated an encrypted string for a plain text using a password and when I try to decrypt the encrypted string using a password, it does not give me the original plain text instead it gave me some random…

thavasidurai
- 1,972
- 1
- 26
- 51
2
votes
2 answers
How to store Credit Card info on iOS / Android in a PCI-compliant manner
I'm building a mobile app that accepts payments. The user enters their CC details, and the payment info is submitted to a retailer's POS system over HTTPS. The POS processes the payment directly and needs the actual credit card info to work,…

DTs
- 1,196
- 1
- 11
- 28