Jump to content

Recommended Posts

Hi, i have a question about XOR encryption. i know Autoit has this function BitXOR but how to handle it right? i tried and failed, did that a lot until i decided to ask you :graduated:

How to encrypt XOR data: C6 XOR A3 (4 bit) and the result should be 65 but i get a lot of weird answers using different methods.

Hope you can help !:(

Link to post
Share on other sites

Post what you tried. This works fine:

$a = 0xC6
$b = 0xA3
$c = BitXOR($a, $b)
ConsoleWrite("$a = 0x" & Hex($a, 2) & "; $b = 0x" & Hex($b, 2) & "; $c = 0x" & Hex($c, 2) & @LF)


P.S. The hexadecimal answer 0x65 is 8-bits, not 4.

Edited by PsaltyDS
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...