mirror of
https://github.com/dobin/SuperMega
synced 2026-06-03 01:27:11 +00:00
feature: 2-byte xor key
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// Multibyte XOR (untested)
|
||||
// Need: key, key_len
|
||||
for ( int i = 0; i < {{PAYLOAD_LEN}}; i++ ) {
|
||||
dest[i] = supermega_payload[i] ^ key[i % key_len];
|
||||
}
|
||||
// Multibyte XOR
|
||||
char *key = "{{XOR_KEY2}}";
|
||||
for ( int i = 0; i < {{PAYLOAD_LEN}}; i++ ) {
|
||||
dest[i] = supermega_payload[i] ^ key[i % 2];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user