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:
01270655
Vues:
14
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
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform