problem with Decript function
Posted: Sun Jan 19, 2025 4:05 pm
I noticed the problem because in an old program when I insert a user and go to save the password it saves it like this
then I not understood how it save the password on field on archive
cPassw:=Encrypt(cPassw1)
oUtente:PassW :=cPassw
oUtente:save()
but when I have to convert it again to do the login check it tells me that the passwords do not match
cPasw:=Alltrim(Decrypt(oUtenti:PassW))
IF cPasw==cPass //cPass is the value insert by user
lRet:=lCont:=.T.
then I not understood how it save the password on field on archive
cPassw:=Encrypt(cPassw1)
oUtente:PassW :=cPassw
oUtente:save()
but when I have to convert it again to do the login check it tells me that the passwords do not match
cPasw:=Alltrim(Decrypt(oUtenti:PassW))
IF cPasw==cPass //cPass is the value insert by user
lRet:=lCont:=.T.