Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DecryptSessionBlockString
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01270651
Message ID:
01270675
Vues:
19
Hi Christof, the _cript.vcx is in the same directory, but from the command window, the line 'newobject..' do not find _cryptapi. 'class definition not found'. Where am I wrong?

>Hi,
>
>>I need to use decryptsessionblockstring in the main.prg, before showing the main form. The error is: 'I do not find DecryptSessionBlockString'. How can i use _crypt class without form?
>
>That's how I use it:
>
>*========================================================================================
>* Decrypts a string with a password and returns the result
>* back as plain text
>*========================================================================================
>LParameter tcEncrypted, tcPassword
>
>	Local loCrypt, lcData, llOK
>
>	loCrypt = NewObject("_CryptApi",Home()+"FFC\_Crypt.vcx")
>	lcData = ""
>	llOK = .T.
>
>	llOK = loCrypt.DecryptSessionBlockString( ;
>		m.tcEncrypted, m.tcPassword, @lcData )
>	If not m.llOK
>		lcData = NULL
>	EndIf
>	
>Return m.lcData
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform