hacktricks/cryptography/rc4-encrypt-and-decrypt.md
Carlos Polop b099d4ee5d a
2024-07-18 18:21:56 +02:00

2.6 KiB

{% hint style="success" %} Learn & practice AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE)
Learn & practice GCP Hacking: HackTricks Training GCP Red Team Expert (GRTE)

Support HackTricks
{% endhint %}

If you can somehow encrypt a plaintext using RC4, you can decrypt any content encrypted by that RC4 (using the same password) just using the encryption function.

If you can encrypt a known plaintext you can also extract the password. More references can be found in the HTB Kryptos machine:

{% embed url="https://0xrick.github.io/hack-the-box/kryptos/" %}

{% embed url="https://0xrick.github.io/hack-the-box/kryptos/" %}

{% hint style="success" %} Learn & practice AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE)
Learn & practice GCP Hacking: HackTricks Training GCP Red Team Expert (GRTE)

Support HackTricks
{% endhint %}