문제

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 side to decrypt data received.

Any idea?

Configuration: iOS 5.0 with RNCryptor / Python + Tornado Web Server

Thanks!

도움이 되었습니까?

해결책

Well it's not encrypted, it just prepends header info to the NSData. If your not using password based encryption, i think you need to skip 2 bytes, and then read in the length of the IV to get the iv. But based on various settings headers length conditionally changes see full details:

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top