FoxPro Programming
error decrypting passwords
Gravatar is a globally recognized avatar based on your email address. error decrypting passwords
  Bob
  All
  Jan 5, 2023 @ 07:39pm

After upgrading from West Wind Client Tools 7.07 to 7.29, when I try to decrypt a password I get this error. "Error #1429 Ole dispatch exception from wwdotnetbridge method WestWind.WebConnection.EncryptionUtils.DecryptString not found" This is the code

Parameters p_password,p_set
DO wwEncryption
o = CREATEOBJECT("wwEncryption")

lReturn=""
Do Case
Case Lower(p_set)=="set"
    *returns the encrypted password
    newValue=ALLTRIM(o.EncryptString(p_password,g_myValue))
    If Not Empty(newValue)
        lReturn= newValue
    Endif
Case Lower(p_set)=="unset"
    *returns the decrypted password
    newValue=ALLTRIM(o.DecryptString(p_password,g_myValue))
    If Not Empty(newValue)
        lReturn=newValue
    ENDIF
Case Lower(p_set)=="validate"

Endcase
Return lReturn
Gravatar is a globally recognized avatar based on your email address. re: error decrypting passwords
  Bob
  Bob
  Jan 5, 2023 @ 07:56pm

I copied the original wwwdotnetbridge.dll (7/1/2018) into the application folder and the error did not occur.

Gravatar is a globally recognized avatar based on your email address. re: error decrypting passwords
  Rick Strahl
  Bob
  Jan 6, 2023 @ 01:43pm

You need to make sure that both the PRG and library are synced. There are often changes in the way that .NET functions are called if they don't match up you can see errors like this as the .NET functions are not found.

The method is definitely in the new dll, so perhaps by not having a local copy you were picking up a copy from some unexpected path along your FoxPro path.

+++ Rick ---

© 1996-2024