Skip to content

Commit

Permalink
crypto XOR
Browse files Browse the repository at this point in the history
  • Loading branch information
harshit-jain52 committed Jan 3, 2025
1 parent 5244e56 commit a24250d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CTFLearn/Cryptography/158.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# [Hextroadinary](https://ctflearn.com/challenge/158)

Take XOR of the given numbers:

```bash
python3 -c 'print(hex(0xc4115 ^ 0x4cf8))'
```
9 changes: 9 additions & 0 deletions CTFLearn/Cryptography/227.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# [BruXOR](https://ctflearn.com/challenge/227)

Brute force every ASCII key:

```python
text = "q{vpln'bH_varHuebcrqxetrHOXEj"
for key in range(256):
print(''.join([chr(key ^ ord(x)) for x in text]))
```

0 comments on commit a24250d

Please sign in to comment.