Source language: Translate to:

Encrypt variable's file

General questions about NeoBook

Moderator: Neosoft Support

Encrypt variable's file

Postby michi » Sun Jan 10, 2016 9:26 am

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!

Started to use Neobook in 2003 when I was 12 to make interactive books. Coders saw me and smiled.
Nowadays I'm still using Neobook to create advanced and powerful softwares. Coders see me and say: «how did you make that?»
Posts: 33
Joined: Wed Jun 25, 2014 3:01 am
Location: Italy

Re: Encrypt variable's file

Postby virger » Sun Jan 10, 2016 10:19 am

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
User avatar
Posts: 535
Joined: Mon Sep 18, 2006 12:21 pm
Location: Costa Rica, America Central

Re: Encrypt variable's file

Postby Tony Kroos » Sun Jan 10, 2016 6:01 pm

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.
Tony Kroos
Posts: 405
Joined: Thu Oct 15, 2009 3:43 pm

Re: Encrypt variable's file

Postby mishem » Sun Jan 10, 2016 9:49 pm



and etc.
Posts: 577
Joined: Mon Oct 08, 2012 1:51 pm

Re: Encrypt variable's file

Postby HPW » Mon Jan 11, 2016 1:48 am


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.

User avatar
Posts: 2526
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Return to General NeoBook Discussions

Who is online

Users browsing this forum: Exabot [Bot] and 1 guest