Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: FLASH: Password Protected Flash file
From: Suzanne Beane
Date: Mon, 24 Jan 2000 19:10:13 GMT

thanks for your help with this...

-----Original Message-----
From: owneratchinwag [dot] com [owneratchinwag [dot] com]On">mailto:owneratchinwag [dot] com]On Behalf Of RedStar
Sent: Monday, January 24, 2000 1:48 PM
To: flasheratchinwag [dot] com
Subject: Re: FLASH: Password Protected Flash file


Suzanne,

"When setting up a password protected flash file, can you have more than
one correct password (within flash--using the "if" and "else"
actionscript)?"

Yes, if you have, for example, two passwords use an 'or' test in you if
condition.
In pseudo script testing password for the values first or second would
be:

If ((password ="first") or (password="second"))
some_routine
Else....

As a side note:
This is an insecure method, as the passwords are stored in the clear in
the swf file and anyone can retrieve them easily. If you need a secure
password system in Flash then you could for example keep an md5 hash of
the passwords in the swf file and have an external javascript routine
that would convert the user input password to it's md5 hash and compare
the result with the stored value.

.redstar.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: Password Protected Flash file, RedStar

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]