Encrypt and Decrypt errors
Posted: Tue Sep 11, 2018 8:15 am
On a ftp procedure I use this configuration to upload and download a file from fwh
I wish use Encrypt and Decrypt functions
WritePProString("Config","Ftp",Encrypt(cFtp),::cIniFtp)
or
Local cFtp :=Decrypt( pad(GetPvProfString("Config","Ftp" ,"" ,::cIniFtp ) , 60 ," " ) )
When I encrypt fwh run ok and the infodata are save on ini file
but I use decrypt and I wish load the info data I saved it not return the data clear
![Image](https://s15.postimg.cc/4a1cbe323/errore.jpg)
If I insert a IP for sample 168.200.1.1 instead ftp.xxxx.it
it make error
Any solution please?
Code: Select all
Local cFtp :=( pad(GetPvProfString("Config","Ftp" ,"" ,::cIniFtp ) , 60 ," " ) )
Local cFtpDir :=( pad(GetPvProfString("Config","FtpDir" ,"",::cIniFtp ) , 60 ," " ) )
Local cUser :=( pad(GetPvProfString("Config","User" ,"" ,::cIniFtp ) , 60 ," " ) )
Local cPws :=( pad(GetPvProfString("Config","Password" ,"" ,::cIniFtp ) , 60 ," " ) )
Local cUpdFile :=( pad(GetPvProfString("Config","Filename" ,"" ,::cIniFtp ) , 60 ," " ) )
Local cLocalDir:=( pad(GetPvProfString("Config","Cartella" ,"" ,::cIniFtp ) , 60 ," " ) )
WritePProString("Config","Ftp",Encrypt(cFtp),::cIniFtp)
or
Local cFtp :=Decrypt( pad(GetPvProfString("Config","Ftp" ,"" ,::cIniFtp ) , 60 ," " ) )
When I encrypt fwh run ok and the infodata are save on ini file
but I use decrypt and I wish load the info data I saved it not return the data clear
![Image](https://s15.postimg.cc/4a1cbe323/errore.jpg)
If I insert a IP for sample 168.200.1.1 instead ftp.xxxx.it
it make error
Any solution please?