xor-base64.pl - encrypt/decrypt a string with XOR and base64
Here is a little tool written in perl, which XOR a string against a key and outputs the result base64 encoded and vice versa.
Encrypt
./xor-base64.pl -e foobar -k deadbeef
[+] Cleartext: foobar [+] Key: deadbeef [+] Hex: 020a0e060317 [+] Ciphertext: AgoOBgMX |
Decrypt
./xor-base64.pl -d AgoOBgMX -k deadbeef
[+] Ciphertext: AgoOBgMX [+] Hex: 020a0e060317 [+] Key: deadbeef [+] Cleartext: foobar |
And here is the code