Use of the encryption features in 2.6
Mark Schonewille
europe at ehug.info
Thu Oct 13 06:13:36 EDT 2005
Hi Bill,
An easy way to encrypt the contents of a field:
on mouseUp
encrypt fld 1 using blowfish with password "12345678"
put the result into rslt
if rslt is empty then
put it into fld 2
else
put rslt into fld 2
end if
end mouseUp
and decrypt it using
on mouseUp
decrypt fld 2 using blowfish with password "12345678"
put the result into rslt
if rslt is empty then
put it into fld 2
else
put rslt into fld 2
end if
end mouseUp
To use these scripts, just make one stack with two fields and
two buttons. The two buttons should contain these scripts.
When you encrypt a container, you will always find the resulting
value in the it variable. Normally, you would replace the
contents of the original container with the contents of the it
variable.
Best,
Mark
Bill Vlahos wrote:
> Has anyone published a description of how to use the encryption features
> of 2.6?
>
> I have a program that stores data in custom properties on several cards
> (major catagories) which I want to encrypt. It would be nice to click a
> check box to automatically encrypt the entire stack but I don't think it
> works that way.
>
> I'm assuming that I need to encrypt the data before putting it into the
> custom property and decrypt it when bringing it out. This doesn't sound
> that hard but very tedious. The nature of this program requires that it
> will be doing this all the time that it is running so it can always be
> in a "saved" state on the drive.
>
> The docs are pretty clear on what the parameters are but not on how I
> would actually implement this in a real program.
>
> Is there a tutorial somewhere that I missed?
>
> Thanks,
> Bill Vlahos
--
eHUG coordinator
mailto:europe at ehug.info
http://www.ehug.info
http://home.wanadoo.nl/mark.sch
http://www.economy-x-talk.com
More information about the use-livecode
mailing list