encryption and free up memory on closing

Klaus Major klausimausi at mac.com
Tue Jan 14 07:03:00 EST 2003


Hi David,

> 2 questions, list folks.
>
> 1  I plan to store assessment records in a data stack.  Customers will 
> pay
> for the number of assessments they  want to do.  So, in a hidden 
> object, I
> will simply store the number they have paid for.  If they want more, I 
> will
> send them a stack that will up the number.  The data stack will also be
> holding confidential information i don't want to be easily readable.  
> I was
> thinking I could set the password of the data stack, so encryptng it 
> and
> preventing casual browsing and poking around using a text editor.  
> Howevere,
> i don't want my users to have to use a password. Can i just set and 
> unset the
> password in a script as my standalone accesses and closes the data 
> stack?  Or
> do I need to set a password and subsequently use the passkey?

Yes, set the password and in scripts use passkey.

> How do I do this in a script?

As simple as:

...
set the passkey of stack "xyz" to "secret_word"
## do your stuff here
...

Isn't Transscript wonderful :-)

> The docs seem to assume that if you want to encrypt a
> stack, you also want the user to enter a password, so there are no 
> scripted
> examples given.

See above...

> 2  I have set the data stack to free memory on closing.  Am i right to 
> assume
> that this doesn't do anything in the development environment?  After 
> closing
> I can still see the stack in the App overview and access it via same.  
> It
> only goes if I 'purge' using app overview or menu.

Sorry, no idea...

> Best wishes,
>
> David Glasgow

Regards

Klaus Major
klausimausi at mac.com




More information about the use-livecode mailing list