Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
.NET Compatible encryption library
Message
From
01/07/2009 04:02:23
 
 
To
26/06/2009 12:15:28
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01407945
Message ID:
01409522
Views:
58
Hi,
I tried to use RC4 algorithm provided at http://www.codeproject.com/KB/recipes/rc4csharp.aspx, but the result generated is difference with VfpEncryption

.NET = "203A7BB0530C0347082039D9583A4CF7153695A35EA6C16D92013F5A45E" (59 chars)
VFP = "9B7BB0530C0347088BD9583A4CF79C695A35EA6C16D996F5A45E" (52 chars)
// .NET

        CryptoRC4.RC4Engine rc4 = new CryptoRC4.RC4Engine();

        rc4.EncryptionKey = "1234567890";
        rc4.InClearText = "QWERTYUIOPASDFGHJKLZXCVBNM";
        bool ok = rc4.Encrypt();

        string result = ConvertToHex(rc4.CryptedText);
** VFP
strconv(Encrypt("QWERTYUIOPASDFGHJKLZXCVBNM", "1234567890", 1024), 15)
Any ides?

Thank you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform