QuantumEntangledAndy / neolink

An RTSP bridge to Reolink IP cameras
GNU Affero General Public License v3.0
331 stars 45 forks source link

Fix login on new firmware #127

Closed QuantumEntangledAndy closed 1 year ago

QuantumEntangledAndy commented 1 year ago

Seems that something is up with login on latest firmware. This PR will try to address that (also fix some other bugs)

QuantumEntangledAndy commented 1 year ago

It seems the new firmware won't accept the 0x02 encryption algorithm and is now using just 0x12. I will have to work out what is going on with it....

QuantumEntangledAndy commented 1 year ago

Success! The 0x12 encryption algorithm patially encrypts the media packets. Binary data can now be encryted if the encryptionLen is set in the meta data of the packet. Encryption is with the same method as the xml payloads which was, in this case, AES.