Hi this a QR Encoder project found at github by myang, https://github.com/myang-git/QR-Code-Encoder-for-Objective-C i want to use the encode and decode functionality provided here, am able to successsfully create a QR code with encrypted string but am not able to decode it...
How do i decode the string returned after scanning the QR code...
the method provided for decrypting takes nsdata and passphase parameter i tried converting the scanned string to nsdata and then passing it as parameter to this function , but its not working...
how do i decode the string??
this is what i do to encode then string ..
DataMatrix* qrMatrix = [QREncoder encodeWithECLevel:QR_ECLEVEL_AUTO version:QR_VERSION_AUTO string:aVeryLongURL AESPassphrase:@"xyz"];
UIImage* qrcodeImage = [QREncoder renderDataMatrix:qrMatrix imageDimension:qrcodeImageDimension];
and this is what i tried to decode the string returned after scanning....
NSString *strReturedAfterscanning=@"ñ?³éMX¹Ç7T?îéz°z ";
NSData* data=[strReturedAfterscanning dataUsingEncoding:NSUTF8StringEncoding];
NSString *str1=[QREncoder AESDecryptString:data withPassphrase:@"xyz"];
this is not working??