password decoding for cde files.
| cde_decode.py | ||
| CODE_OF_CONDUCT.md | ||
| LICENSE | ||
| README.md | ||
| test-passwd-abcdefgh.cde | ||
| test-passwd-apple420.cde | ||
| test-passwd-hamburger.cde | ||
| test-passwd-ninja1234567890.cde | ||
| test-passwd.cde | ||
| test.cde | ||
CDE Password Decoder
Decode passwords stored in the custom .cde file samples in this repo.
Usage
python /home/hc/Downloads/CDE/cde_decode.py /home/hc/Downloads/CDE/test-passwd.cde
Optional flags:
--quietprints only the decoded password--show-fieldprints the raw stored field bytes--show-bytesprints the decoded bytes--offsetand--lengthlet you override the defaults
Encoding Details
The password field starts at offset 0x74 and is 14 bytes long. It is padded with 00
after the end of the password. Each stored byte is the ASCII code minus its 1-based
position within the field:
stored[i] = (plain[i] - (i + 1)) & 0xff
plain[i] = (stored[i] + (i + 1)) & 0xff
Only the first 14 bytes are stored; longer passwords are truncated. A 00 byte
terminates the password when decoding.