RNCryptor Server and Python

I use RNCryptor to encrypt NSData on iOS and send it to the Python server. So far, so right. My problem occurs when I try to decrypt NSData on the server side.

RNCryptor embeds all the relevant data in an encrypted header, but I can not get IV on the server side to decrypt the received data.

Any idea?

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

Thanks!

+4
source share
1 answer

Well, it is not encrypted, it just adds header information to NSData. If you do not use password-based encryption, I think you need to skip 2 bytes and then read the length IV to get iv. But based on various settings, the headers conditionally change the length, see Full information:

+1
source

Source: https://habr.com/ru/post/1444409/


All Articles