Re: Encryption & Decryption script
- From: Willem Bogaerts <"w.bogaerts'OR1=1-- "@kratz.maardanzonderditstuk.nl>
- Date: Tue, 30 Sep 2008 15:28:47 +0200
I get bored last night and wrote a script that uses xor for encrypt-
decrypt, however it woks fine under linux 2.6.25, text and documents
are ok, but fails on compressed files *.jpg, *.pdf , etc . I didn't
test script on windows.
I did not look at the code, but xor on PHP is quite counter-intuitive.
The most significant bit is seen as a sign bit and is treated special.
Furthermore, the size of an integer is not determined. I ended up
creating my own fixed size integer classes when I had to implement a
decryption algorithm.
Best regards,
--
Willem Bogaerts
Application smith
Kratz B.V.
http://www.kratz.nl/
.
- Follow-Ups:
- Re: Encryption & Decryption script
- From: Michael Fesser
- Re: Encryption & Decryption script
- References:
- Encryption & Decryption script
- From: Betikci Boris
- Encryption & Decryption script
- Prev by Date: Re: httpd.conf - question - how to do this
- Next by Date: Re: html forms and spam-bots
- Previous by thread: Encryption & Decryption script
- Next by thread: Re: Encryption & Decryption script
- Index(es):
Relevant Pages
|