Q
quintesv via DotNetMonster.com
Hi all,
On WinXP, VS 2003, .net 1.1
I have written an encryption class which uses rijndael method to encrypt a
string AND then convert the string to unicode using System.Text.
Unicodeencoder.
I then write this encrpyted string as follows:
//c is HTTPCookie
c.Values.Add("ValueString",sEncryptedString);
Response.AppendCookie(c2);
This results in the asp.net tracer outputting
For the Value described above:
Num Bytes : 16
String : 㺎旖犗?Ȭꂼ꿣è°
When reading this cookie in the Application_AuthenticateRequest sub it also
outputs as above. 16 Bytes. Same string build from the characters above..
However doing the above on a win2003 machine hosting the web project, the
tracer output shows the value in the cookie as blocks , ie, non displayable
characters. but when reading the cookie again the BYTES are 42 and the string
is double the size and consists of garbage.
note that im using the unicodeencoder.getbytes and getbytelength to determine
the lenght of the string in bytes.
Why is this not working when hosting the project on a Win2003 machine but it
works on winxp sp2?
On WinXP, VS 2003, .net 1.1
I have written an encryption class which uses rijndael method to encrypt a
string AND then convert the string to unicode using System.Text.
Unicodeencoder.
I then write this encrpyted string as follows:
//c is HTTPCookie
c.Values.Add("ValueString",sEncryptedString);
Response.AppendCookie(c2);
This results in the asp.net tracer outputting
For the Value described above:
Num Bytes : 16
String : 㺎旖犗?Ȭꂼ꿣è°
When reading this cookie in the Application_AuthenticateRequest sub it also
outputs as above. 16 Bytes. Same string build from the characters above..
However doing the above on a win2003 machine hosting the web project, the
tracer output shows the value in the cookie as blocks , ie, non displayable
characters. but when reading the cookie again the BYTES are 42 and the string
is double the size and consists of garbage.
note that im using the unicodeencoder.getbytes and getbytelength to determine
the lenght of the string in bytes.
Why is this not working when hosting the project on a Win2003 machine but it
works on winxp sp2?