Sign in to follow this  
Followers 0
Zibit

XOR Encryption

4 posts in this topic

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 !:(

Share this post


Link to post
Share on other sites



I searched the forum an found this threads:

etc.

Maybe useful for you.

Br,

UEZ


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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)

:graduated:

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

Share this post


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
Sign in to follow this  
Followers 0