I am using Triple DES Encryption using this code. I am getting errors that say
No visible @interface for 'NSData' declares the selector 'initWithBase64EncodedString:'
No visible @interface for 'NSData' declares the selector 'base64Encoding:'
I have imported "CommonCrypto/CommonCryptor.h"
There is no
initWithBase64EncodedString:andbase64Encoding:in the defaultNSDataclass.If you need to add these function to
NSDataclass then you need to extend theNSDataclass like:Then you need to implement these methods.
You will get these methods implemented in the following links: