J
James
Hello,
I'm trying to put together a simple utility to do rc4 encryption based on
the rc4 algorithm here:
http://aspnet.4guysfromrolla.com/articles/091802-1.3.aspx
that article is about porting Mike Shaffer's VBScript RC4 to c#... I'm using
that code to make the class but use in a windows form. Using MS Visual C#
Express edition sp1.
so the problem I get when compiling the class is from the use of
Microsoft.VisualBasic.Strings.Asc(), like the following line:
key[a] = Microsoft.VisualBasic.Strings.Asc(ctmp);
The error I get is:
"The type or namespace name 'Strings' does not exist in the namespace
'Microsoft.VisualBasic' (are you missing an assembly reference?)"
this function is used a few times within the class. I am not a real
experienced csharper and literally just installed this c# express edition to
do this little thing... any help would be greatly appreciated. I did
include the 'using Microsoft.VisualBasic;' include directive at the top to
include the namespace.
This is the source code:
http://aspnet.4guysfromrolla.com/code/rc4encrypt.cs.htm
I'm trying to compile this so I can wire it up for use in a windows form
app. (I know .net has builtin support for many crypto algorithms but the
original vbscript version of this RC4 'like' algorithm is already in use for
something which this utiltiy I want to make will be used for.
any input would be appreciated. thanks.
I'm trying to put together a simple utility to do rc4 encryption based on
the rc4 algorithm here:
http://aspnet.4guysfromrolla.com/articles/091802-1.3.aspx
that article is about porting Mike Shaffer's VBScript RC4 to c#... I'm using
that code to make the class but use in a windows form. Using MS Visual C#
Express edition sp1.
so the problem I get when compiling the class is from the use of
Microsoft.VisualBasic.Strings.Asc(), like the following line:
key[a] = Microsoft.VisualBasic.Strings.Asc(ctmp);
The error I get is:
"The type or namespace name 'Strings' does not exist in the namespace
'Microsoft.VisualBasic' (are you missing an assembly reference?)"
this function is used a few times within the class. I am not a real
experienced csharper and literally just installed this c# express edition to
do this little thing... any help would be greatly appreciated. I did
include the 'using Microsoft.VisualBasic;' include directive at the top to
include the namespace.
This is the source code:
http://aspnet.4guysfromrolla.com/code/rc4encrypt.cs.htm
I'm trying to compile this so I can wire it up for use in a windows form
app. (I know .net has builtin support for many crypto algorithms but the
original vbscript version of this RC4 'like' algorithm is already in use for
something which this utiltiy I want to make will be used for.
any input would be appreciated. thanks.