Sinisterly
Text prob - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Visual Basic & .NET Framework (https://sinister.li/Forum-Visual-Basic-NET-Framework)
+--- Thread: Text prob (/Thread-Text-prob)



Text prob - 1llusion - 01-12-2011

Hey all!!!

When I encrypt my strings, I sometimes get this character ” which breaks the encrypted word in a half.

Is there a way to prevent it? I would love to protect my program Smile
Thanks!!!


RE: Text prob - Coder-san - 01-12-2011

I'm not sure if I understood it totally. Can you give an example?
What encryption are you using? You may need to modify it a little.


RE: Text prob - 1llusion - 01-12-2011

I use RC4 encryption, forgot to mention it.

Well, when I encrypt some word, I sometimes get something like: Kě2K"k1

The " makes me unable to use it, because it breaks the string in half Smile

(Im using this function: rc4(" Kě2K"k1","pass")

Thanks for reply!



RE: Text prob - Coder-san - 01-12-2011

Oh, then you can simply use Chr(34) instead of that one " which is the same thing.

Code:
rc4(" Kě2K" & Chr(34) & "k1","pass")



RE: Text prob - 1llusion - 01-12-2011

(01-12-2011, 07:47 PM)Coder-san Wrote: Oh, then you can simply use Chr(34) instead of that one " which is the same thing.

Code:
rc4(" Kě2K" & Chr(34) & "k1","pass")

ow awesome Smile thanks Smile

Where do you find these chr's?
Just got idea with them Biggrin
Thanks Smile


RE: Text prob - Coder-san - 01-12-2011

You can find out yourself by running a Loop. Smile

Code:
For i As Integer = 0 To 255 TextBox1.Text &= i & " - " & Chr(i) & vbNewLine Next



RE: Text prob - 1llusion - 01-12-2011

awesome Smile

Thanks!!!