Encrypt Password - Decrypt same

Mark Talluto userev at canelasoftware.com
Mon Nov 29 14:02:52 EST 2004


On Nov 29, 2004, at 10:57 AM, Steve Bonham wrote:

> Hi Revolutionaries,
>
> I'm lost regarding the encrypt and decrypt commands.
>
> I've created a Jeopardy-like game and saved it as a stand-alone 
> application.
>
> When the user closes the stack their preferences (number of daily 
> doubles, row values, default game file, user password, etc) are 
> written to an external text file.
>
> When the user opens the stack the last used preferences are read and 
> loaded into flds or variables to re-configure the game as it was last 
> used.
>
> AhHa! You see the problem already... Anyone can open the settings.txt 
> file and see the password!
>
> I'd like to encrypt the password on closestack and write that to the 
> file. Then import and decrypt the password. But I don't understand the 
> Rev documentation for encrypt & decrypt. The following makes NO sense 
> to me at all...
>
> encrypt source using cipher with [password|key] passorkey[and salt 
> saltvalue] [and IV IVvalue] [at bit ]
>
> Can someone provide some sample Transcript that will enlighten me?

Hi Steve,

I am not too proficient with the new feature either.  But I have used 
the following:

put "superSafe" into lpassword
encrypt field "myData" using "rc4" with password lpassword at 256
put it into someVariable

Hope this gets you started.

-- 
Best regards,
Mark Talluto
http://www.canelasoftware.com



More information about the use-livecode mailing list