Follow

they actually obfuscated the data 😞

uint8_t scramble(uint8_t p) {
uint8_t a = p & 0x7E | p >> 7 & 0x01 | p << 7 & 0x80;
uint8_t b = a ^ MAGIC;
uint8_t s = (b + 1) & 0xFF;
return s;
}

uint8_t descramble(uint8_t s) {
uint8_t a = (s + 0xFF) & 0xFF;
uint8_t b = a ^ MAGIC;
uint8_t p = b & 0x7E | b >> 7 & 0x01 | b << 7 & 0x80;
return p;
}

Thanks go to: stefan.schuermans.info/rdcam/s

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
chaos.social

chaos.social – a Fediverse instance for & by the Chaos community