mirror of
https://github.com/Ap0dexMe0/unixtract.git
synced 2026-07-15 21:00:03 +02:00
- change formats to have their own folders with mod + include files + anything they want - change format list to be defined in formats.rs instead of in each format - move utils to their respective formats - some minor code changes in some formats
7 lines
320 B
Rust
7 lines
320 B
Rust
pub fn decrypt_xor(data: &[u8]) -> Vec<u8> {
|
|
let key_bytes = b"\xCC\xF0\xC8\xC4\xC6\xCA\xCC\xDA\xC6\xCA\xCC\xDA\xC6\xCA\xCC\xDA\xC6\xCA\xCC\xDA\xC6\xCA\xCC\xDA\xC6\xCA\xCC\xDA\xC6\xCA\xCC\xDA";
|
|
data.iter()
|
|
.enumerate()
|
|
.map(|(i, &byte)| byte ^ key_bytes[i % key_bytes.len()])
|
|
.collect()
|
|
} |