|
-
Dec 4th, 2001, 07:42 PM
#1
Encryption XoR
I use a new algo with a XoR but like in that :
Code:
p=blpHb fLg?mEw{fRrw$)f+bIv)"8f+j1"f)#opkSn=m6#/lqrwpyQZnSx>mgTHKHZTrL7f'vpS&pZ`'=>w|"%",D:p,a+q2"KrRA!nfHu9jUãgodbq#—#q›wCfa4#T b5a f-#5mq|oDj p?b7v|[
In the debug.print I can see the text who is over that line but in the text box I only see that :
Why ?
And how can I fix that ?
-
Dec 4th, 2001, 07:46 PM
#2
-
Dec 4th, 2001, 07:48 PM
#3
Already done that... I think it's because charactere erase some other ? Or maybe not ? I can not figure what's wrong with the Textbox.
-
Dec 4th, 2001, 07:49 PM
#4
-
Dec 4th, 2001, 07:54 PM
#5
Anyone already had that problem with XoR operation ?
-
Dec 4th, 2001, 07:56 PM
#6
-
Dec 4th, 2001, 08:04 PM
#7
I didnt but what it's weird is when I paste the code in the textbox it's ok but the code is not decrypted at all because I think that erase chr.
-
Dec 4th, 2001, 08:05 PM
#8
-
Dec 4th, 2001, 08:07 PM
#9
I XoR a sentence and in the debug print i see the crypted text but in the textbox i do not see all the text but if i take the text in the debug and I paste it in the text box and xor it the code is decrypted at half so I think than it have a chr who erase something.
-
Dec 4th, 2001, 08:20 PM
#10
-
Dec 4th, 2001, 08:21 PM
#11
ok i have do something when the chr is under 32 than do something but it do not work perfectly so if some one have a solution please write it there.
-
Dec 4th, 2001, 08:23 PM
#12
-
Dec 4th, 2001, 09:27 PM
#13
Addicted Member
Rikk =\=
Starcraft, Protoss Scout Driver!
-
Dec 4th, 2001, 09:38 PM
#14
So Unbanned
A richtextbox will display chr$(0) just fine.
The problem with it isn't actually a windows problem as nishantp stated. VB was built on C++, thus it inherits flaws. As you may know chr$(0) is null, C++ intreprets this as end of string. That's why anything after is is ignored. Possible solutions, as I stated one before richtext, another is converting to hex.
When you convert though make sure you either use format or string(2-len(hex),"0") & hex, otherwise you'd get a truncated string which would be extremely hard to decrypt, especially for a program. To do it you'd have to do redundency checking, to see if it's really just one character or two... which would mean your characters would have to have the values stored in them.
Say I have hi,
asc(h)=104
lastchar = 0
104 xor lastchar xor 1 = 105
lastchar = 105
asc(i) = 105
asc(i) xor lastchar xor 2 = 2
or..
you could split up values
< 128 = 1
> 128 = 0
then mark the length for each hex values...
as you can see this gets long and complicated...
Richtext is the way to go!
-
Dec 4th, 2001, 09:42 PM
#15
Need-a-life Member
Originally posted by DiGiTaIErRoR
A richtextbox will display chr$(0) just fine.
....
Richtext is the way to go!
I've proposed that before...
Originally posted by Mc Brain
Have you tried setting that to the text property of a RTB?
But, he didn't care to try it.
Emiliano F. Martín
If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
-
Dec 4th, 2001, 09:43 PM
#16
So Unbanned
Great minds think alike Mc Brain.
-
Dec 4th, 2001, 09:45 PM
#17
-
Dec 4th, 2001, 09:46 PM
#18
So Unbanned
Perhaps better stated.. great Brains.
-
Dec 4th, 2001, 09:48 PM
#19
Need-a-life Member
-
Dec 5th, 2001, 02:17 AM
#20
Conquistador
Originally posted by DaoK
OK I can not solve the problem at 100% but it work at 50%.
here is a test to try to crack my XoR encryption.
Code:
$#7iIz+v'#>b5w7vHl(
The message will be like that : HelLO yOu i Am YOUr fRIend
This is just an example because I do not know why it do that but it freak out all chr...Try to crack the txt in the code quote and tell me if you crack it how you did.
are you going to post a test program, compiled, so that i can try some things out?
-
Dec 5th, 2001, 06:41 AM
#21
ok I will try RTB but I wanted to use a Textbox to have the least possbile OCX in my project.
-
Dec 5th, 2001, 06:42 AM
#22
are you going to post a test program, compiled, so that i can try some things out?
Maybe yes and maybe no, I need to work a little on it than maybe. The algo is better of my last one I am proud of it
-
Dec 5th, 2001, 07:21 AM
#23
Conquistador
-
Dec 5th, 2001, 07:21 AM
#24
Conquistador
in compiled form, so we have something to work with!
-
Dec 5th, 2001, 07:02 PM
#25
Wait! With a richtextbox it doesnt work, lets me work on it and I will come back to give you some news.
-
Dec 5th, 2001, 07:10 PM
#26
I have solve my problem, I want to thx all who helped me.
If someone is interested the problem was for an unknown reason a move of 32 chr each letter that why all capital letter changed and some time double line didnt work. Anyway, thx you all
-
Dec 6th, 2001, 12:05 AM
#27
Conquistador
post a program for us to test the encryption!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|