- Bala Kotha
- PowerBuilder
- Monday, 14 September 2020 03:55 PM UTC
Hello All,
I am trying to pull the encrypted value from the .ini file (Configuration file) file and decrypt it using Base64Encode and Base64Decode. I successfully captured the encrypted value, but when I am trying to Decrypt it, I am not getting the expected result.
Below is the piece of logic which I have written:
Blob lblb_Pwd, lblb_UserID, lblb_UserID1
String ls_Base64Pwd, ls_Base64UserID, ls_app_username
lblb_UserID = Blob("gs_app.ss_app_ini", EncodingANSI!)
CoderObject lnv_CoderObject
lnv_CoderObject = Create CoderObject
ls_app_username = ProfileString(gs_app.ss_app_ini,"default","username","")
MessageBox("ls_app_username",ls_app_username)
ls_Base64UserID= lnv_CoderObject.Base64Encode(lblb_UserID)
gs_app.ss_user_name = ls_Base64UserID
MessageBox(".ini UserID",gs_app.ss_user_name)
lblb_UserID1 = lnv_CoderObject.Base64Decode(ls_Base64UserID)
messagebox("Base64Decode", string(lblb_UserID1, EncodingANSI!))
Thanks & Regards
Gopal.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.