Re: empty variable

2020-01-03 Thread Richard Gaskin via use-livecode
Inputs often pose a bigger risk than core dumps. Where you ask: "Any suggestions to make it as secure as possible?" ...we might instead ask: "Any suggestions to make it as secure as *practical*?" ...or even: "Any suggestions to make it as secure as *cost-effective*?" There are always ways to m

Re: empty variable

2020-01-03 Thread JB via use-livecode
That is a very interesting question! If the user enters the password or did I hardcode a password so what follows can only be executed if it included the text I put into the variable. I am in this case hardcoding it in myself. This could be text that is encrypted but it is still there even befor

Re: empty variable

2020-01-03 Thread Richard Gaskin via use-livecode
How does the password come into the variable? -- Richard Gaskin Fourth World Systems JB wrote: What if I have secure info like a password stored in a local variable and then I clear that info by putting empty into that local variable. How secure is that procedure? I understand a local varia

Re: empty variable

2020-01-03 Thread JB via use-livecode
It seems I really do not need to worry too much because if I understood it correctly the memory of the variable at the end of the execution of that code is not only released but it is also deleted. Since the variable I am concerned about is used at the end of the code it does not exist after I use

Re: empty variable

2020-01-03 Thread Bob Sneidar via use-livecode
I was going to say also that unless the script was in a protected stack, it WOULD be very trivial to install Livecode, put a breakpoint just before where you delete the variable, then do a memory dump at that point. Bob S > On Jan 3, 2020, at 12:58 , Bob Sneidar via use-livecode > wrote: >

Re: empty variable

2020-01-03 Thread Bob Sneidar via use-livecode
Well its really about what is going on under the hood. Memory dump for Macs is not trivial from what I read. Apparently it involves turning off system integrity and then booting into a special mode. At that point I stopped reading. Not something I care to do with a production system. Bob S

Re: empty variable

2020-01-03 Thread JB via use-livecode
I have it figured out. You use it to delete each element of the array and that is the same as writing null to each element of the variable. I think they mean if you do not delete each element using this method all you are doing is putting empty into the variable and that would be the same as if y

Re: empty variable

2020-01-03 Thread JB via use-livecode
Is there a easy way to do a memory dump in Livecode? Can I read the blocks of only memory for that variable? In c the blocks are a array numbered from 0 to the size of the variable which would be the length of the variable in Livecode and you can access individual blocks and that is how you write a

Re: empty variable

2020-01-03 Thread Bob Sneidar via use-livecode
I think a memory dump and search of the contents is about the only thing you can do to be sure. Bob S > On Jan 3, 2020, at 11:11 , JB via use-livecode > wrote: > > Hi Bob, > > yeah, I am not sure exactly what it means either. > Different ways of doing the same thing? > > JB ___

Re: empty variable

2020-01-03 Thread JB via use-livecode
Hi Bob, yeah, I am not sure exactly what it means either. Different ways of doing the same thing? JB > On Jan 3, 2020, at 11:09 AM, Bob Sneidar via use-livecode > wrote: > > I'm not sure what this means. When you use delete variable on a script local, > it clears the contents of the variab

Re: empty variable

2020-01-03 Thread Bob Sneidar via use-livecode
I'm not sure what this means. When you use delete variable on a script local, it clears the contents of the variable, but the variable still exists, that is if you can use the Script Editor variable watcher as any kind of irrefutable evidence. Bob S > On Jan 3, 2020, at 11:04 , JB via use-li

Re: empty variable

2020-01-03 Thread JB via use-livecode
Hi Tom, Thanks for the fast reply & info! That was an interesting link. Here are a few lines from the link, -- The delete variable command not only removes the contents of the variable, but deletes it entirely from memory. If you delete a key from an array variable, that element of th

Re: empty variable

2020-01-03 Thread Tom Glod via use-livecode
A memory dump can reveal everything stored in memory for a particular process. the delete variable command is what you are looking for. https://livecode.fandom.com/wiki/Delete_variable On Fri, Jan 3, 2020 at 1:22 PM JB via use-livecode < use-livecode@lists.runrev.com> wrote: > What if I have

empty variable

2020-01-03 Thread JB via use-livecode
What if I have secure info like a password stored in a local variable and then I clear that info by putting empty into that local variable. How secure is that procedure? I understand a local variable does not retain the info after the code finishes but I am concerned about any info left in memory