bitwise XOR a string in Bash
- by ricky2002
Hi. I am trying to accomplish a work in Bash scripting. I have a string which i want to XOR with my key.
#!/bin/sh
PATH=/bin:/usr/bin:/sbin:/usr/sbin export PATH
teststring="abcdefghijklmnopqr"
Now how do i XOR the value of teststring and store it in a variable using bash?
Any help will be appreciated.