Encrypt a stack: how to
Posted: Thu Mar 09, 2017 10:36 am
I have put together the attached stack, in order to clear to my self how encrypting and decrypting stacks can be done.
As of now it works:
- open stack TestUno
- click on "OpenOtherStak"
- stack "TestDue" will open
- make some change to it
- click on "SaveOtherStak"
But there are a few things that I don't understand:
1) line 10 of command "cassaopen":
The decrypt put the decrypted data into it. If I don't do the "go it", nothing happens.
Is this the only way to make LC to recognize the opened stack? (without saving it to disk)
What is "it" at that point? Can I put it into a global and make the stack appear later on (uh!)?
2) after opening the stack "TestDue", this stack doesn't have a file path (you can see it int the RevApplicationOverview or in the project browser)
Is it ok to keep working with a stack only in memory and save it encrypting whenever needed (probably often) ?
3) line 23 of command cassasave
I did not know how to load the binary data of the stack, in order to pass them to the encrypt command, without first saving the stack to disk.
Is there another way to do it in memory only?
4) line 35 of command cassasave
after deleting the cashed stack, there is no file anymore
- on the RevApplicationoverview the TestDue still shows its path: Wrong
- on the project browser it does not have a path anymore: OK
- doing a "the filename of this stack" report the path: Wrong
What gives?
Any comment and suggestions are welcomed
Trevix
As of now it works:
- open stack TestUno
- click on "OpenOtherStak"
- stack "TestDue" will open
- make some change to it
- click on "SaveOtherStak"
But there are a few things that I don't understand:
1) line 10 of command "cassaopen":
The decrypt put the decrypted data into it. If I don't do the "go it", nothing happens.
Is this the only way to make LC to recognize the opened stack? (without saving it to disk)
What is "it" at that point? Can I put it into a global and make the stack appear later on (uh!)?
2) after opening the stack "TestDue", this stack doesn't have a file path (you can see it int the RevApplicationOverview or in the project browser)
Is it ok to keep working with a stack only in memory and save it encrypting whenever needed (probably often) ?
3) line 23 of command cassasave
I did not know how to load the binary data of the stack, in order to pass them to the encrypt command, without first saving the stack to disk.
Is there another way to do it in memory only?
4) line 35 of command cassasave
after deleting the cashed stack, there is no file anymore
- on the RevApplicationoverview the TestDue still shows its path: Wrong
- on the project browser it does not have a path anymore: OK
- doing a "the filename of this stack" report the path: Wrong
What gives?
Any comment and suggestions are welcomed
Trevix