Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read XOR encoded blocks #16

Open
jbride opened this issue Nov 4, 2024 · 0 comments
Open

read XOR encoded blocks #16

jbride opened this issue Nov 4, 2024 · 0 comments

Comments

@jbride
Copy link

jbride commented Nov 4, 2024

  1. Read raw (encrypted) bytes from the file
  2. If an XOR key exists, decrypt each byte by XORing it with the corresponding key byte
  3. Key bytes are used cyclically (if data is longer than key)
  4. Convert decrypted bytes back to the desired data type

decode example:

data
encoded data: 01111000
XOR Key: 10101010
decoded data: 11010010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant