Cracking xor encryption
Source code example of how to break encryption using Delphi's random() function and XOR.
[Cracking XOR Encryption]
drop a button and edit box on the form, text in the edit box has to be at least 8 chars. if you're using to actualy break an encrypted string, just fill buffer [0..7] with encrypted data and fill [0..7] with the plaintext you assume is encrypted (pretty easy, you username of something of the sort).
I'd like to thank Cheng Wei (on Delphi3000.com) for pointing out my rediculously slow calls to Edit1.text[i]. I've rethought the algorithm out, and it now tests keys as 2 longwords. as a result of this fix, it now scans 100,000,000 keys in 15seconds on my duron 600! WAAAHOOOOO! Thanks allot
Cheng!
procedure TForm1.Button1Click(Sender: TObject);
var i,j:longword;
thistime,lasttime:longword;
buffer:array[0..7]of byte;
b:array[0..1]of longword absolute buffer[0];
plaintext:array[0..7]of byte;
p:array[0..1]of longword absolute plaintext[0];
key:array[0..7]of byte;
k:array[0..1]of longword absolute key[0];
begin
lasttime:=gettickcount;
randomize;
if length(edit1.text) longword(MaxInt);
end;
Watch video How to : Cracking xor encryption online without registration, duration hours minute second in high quality. This video was added by user How to : Tips and Trick 16 February 2019, don't forget to share it with your friends and acquaintances, it has been viewed on our site 16 once and liked it people.