Re: how these 2 functions may differ?
- From: "Ben Voigt [C++ MVP]" <rbv@xxxxxxxxxxxxx>
- Date: Wed, 7 Jan 2009 13:02:25 -0600
James wrote:
yes, I'm pretty sure they are. I am sure that the text representation
of them on screen (displayed in text box control) is identical.
I see the vbscript code formatting was lost in my post... I'll try to
attach in a .txt file (windows notepad.exe)
I'm reading through msdn docs now and I'm thinking this has something
to do with the fact that the rc4 cipher is using ascii characters
0-255 and the .net asciiEncoding class only uses 0-127.... maybe I
need to add a step where I change the encrypted text to unicode, then
base64 it?
Encrypted text is not text. It is binary data. I suggest you stop using a
string to hold it. Doesn't the encryption routine give you a byte[] out?
And the Base-64 encoding functions take a byte[] as input. No Unicode
needed, no encoding needed, just pass the byte[].
"Family Tree Mike" <FamilyTreeMike@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:474F2B84-167E-4113-B368-89AD0C327D1A@xxxxxxxxxxxxxxxx
"James" wrote:
Hello,
I'm having an issue that a previously posted on but after
re-reading that post I realize its a mess and it would be a real
pain for someone to lend a
hand based on that.. so here is a much more direct question:
could anyone tell just how these .net base64 functions differ from
the vbscript base64 functions? When using them if I encode the text
'test' I get
the same result from them all, however, if I first RC4 encrypt the
text 'test' and then encode that, the results differ between the
vbscript and ..net functions?
Are the encrypted strings in both cases identical?
Mike
.
- Follow-Ups:
- Re: how these 2 functions may differ?
- From: James
- Re: how these 2 functions may differ?
- From: James
- Re: how these 2 functions may differ?
- References:
- how these 2 functions may differ?
- From: James
- RE: how these 2 functions may differ?
- From: Family Tree Mike
- Re: how these 2 functions may differ?
- From: James
- how these 2 functions may differ?
- Prev by Date: Re: Floating Point Problems
- Next by Date: Immediate Opening for an Experienced Video Conference Engineer
- Previous by thread: Re: how these 2 functions may differ?
- Next by thread: Re: how these 2 functions may differ?
- Index(es):
Relevant Pages
|