Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
.NET Compatible encryption library
Message
De
01/07/2009 04:02:23
 
 
À
26/06/2009 12:15:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01407945
Message ID:
01409522
Vues:
57
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...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform