loEncrypt=CREATEOBJECT('LevelExtreme.Encrypt') IF NOT loEncrypt.Decrypt(lcToken,PADR(AI,8," ")) MESSAGEBOX("Erreur: "+loEncrypt.cError) RETURN ENDIF IF lcPrimaryKey==loEncrypt.cDecrypt llSuccess=.T. ELSE llSuccess=.F. ENDIFThe encryption mechanism is encapsulated in the .NET class. So, the .NET Web Service uses that class to encrypt and VFP does the same, by the use of COM, to decrypt.