Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

String encryption in RubyMotion

I'm trying to encrypt strings in RubyMotion - ideally AES but weaker/older cyphers such as Blowfish should do just fine.

So far I have failed at compiling a couple of pods: RNCrypto and CommonCrypto.

Suggestions? Anyone else tried these pods?

Thank you, Adrian

like image 768
Adrian Spinei Avatar asked Jul 26 '26 02:07

Adrian Spinei


1 Answers

If you're having trouble compiling CocoaPods, make sure you run a rake clean. CocoaPods should work fine with RubyMotion as far as I know.

EDIT: Since the OP hasn't posted his solution as the answer, I'll post it here:

RNCryptor doesn't build for iOS6, and there's a pull for ARC compatibility but not yet integrated in the pod.

As for CommonCrypto, it has an example.m file showcasing its capabilities. This example.m includes a main function which clashes with the one created by RubyMotion. By deleting it, I've managed to make it compile successfully.

like image 159
Jamon Holmgren Avatar answered Jul 27 '26 17:07

Jamon Holmgren



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!