The Forum is up for sale: XeNTaX Forum looking for new owner

quickbms filexor

Coders and would-be coders alike, this is the place to talk about programming.
Post Reply
finale00
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2382
Joined: Sat Apr 09, 2011 1:22 am
Has thanked: 170 times
Been thanked: 307 times

quickbms filexor

Post by finale00 »

When I write something like

Code: Select all

set KEY = "0xFE 0xCA 0xAD 0xDE"
filexor KEY
get LEN long
The value I just read is correct.

However if I did something like

Code: Select all

math key = 0xDEADCAFE
filexor key
get LEN long
It's not right. What's wrong with the second one?

I need to constantly change the key by doing some math operations, like multiply by 3 and add 7 after each read operation, so I thought of just storing the key as a number rather than a string.
User avatar
aluigi
VVIP member
VVIP member
Posts: 1916
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 661 times
Contact:

Re: quickbms filexor

Post by aluigi »

filexor supports bytes, you can't pass a 32bit number.
anyway it looks a very interesting (and easy to realize) idea so I may implement it in the next version of quickbms
Post Reply