Pregunta

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!

¿Fue útil?

Solución

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:

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top