Page 1 of 1

Encrypt variable's file

PostPosted: Sun Jan 10, 2016 9:26 am
by michi
Hi all,
In one of my application I use SaveVariables to save all variables data, in order to realod them when application restart. I'd like to know if there's a way to encrypt/decrypt that file, otherwise any user can easly modify values.

Thanks in advance!

Re: Encrypt variable's file

PostPosted: Sun Jan 10, 2016 10:19 am
by virger
No creo seaposible por la forma en que NB guarda las variables.
Propondria una "rutina"
1) SaveVariables
2) Leer el archivo (FileRead)
3) Encriptarlo
4) Salvar de nuevo ya encriptado (FileWrite)

Y para usarlo hacer la rutina inversa
2) Leer el archivo (FileRead)
3) DesEncriptarlo
4) Salvar de nuevo ya desencriptado (FileWrite)
5) LoadVariables


I think is not possible because of the way that NB save the variables.
Propose a "routine"
1) SaveVariables
2) Read the file (FileRead)
3) Encrypt
4) Save the encrypted file (FileWrite)

And to use it again to reverse routine
2) Read the file (FileRead)
3) Decrypt
4) Save the Decrypted file (FileWrite)
5) LoadVariables

Re: Encrypt variable's file

PostPosted: Sun Jan 10, 2016 6:01 pm
by Tony Kroos
You have to encrypt and decrypt data manually, Save/LoadVariables do not work with encrypted data. It means you must collect data from all variables, encrypt it, save to file. And when you want to load data, you must read file, decrypt data and fill all variables. There is some encrypt VBScript functions or you can develop your own data encryption routine with neobook.

Re: Encrypt variable's file

PostPosted: Sun Jan 10, 2016 9:49 pm
by mishem
Plagins
NeoDouble
npCifrarCadena
npCifrarArchivo


hpwUtility
hpwMimeEncodeFile
hpwMimeDecodeFile

and etc.

Re: Encrypt variable's file

PostPosted: Mon Jan 11, 2016 1:48 am
by HPW
Hello,

hpwMimeEncodeFile and hpwMimeDecodeFile does not encryt/decrypt, they convert binary to text-stream in MIME-standard format. So no secure way. Can be easy decoded.

Regards