bitwise XOR a string in Bash

Posted by ricky2002 on Stack Overflow See other posts from Stack Overflow or by ricky2002
Published on 2010-06-02T17:46:40Z Indexed on 2010/06/02 17:54 UTC
Read the original article Hit count: 687

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about bash

Related posts about scripting