Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: ENCRYPTION and Flash 4 |
From: | Joao Carlos Caribe |
Date: | Thu, 6 Jul 2000 06:55:16 +0100 |
> are there any ways to encrypt data strings withing Flash 4? I've created a
> game and need to pass the 'score' variable to my server in such a way that
> it cannot be edited by a user. i can't, for example, have the line
> &score=100 sitting at the end of an URL that i've specified using the
'POST'
Try this Action Script Below:
Set Variable: "size" = Length (word)
Set Variable: "pointer" = "1"
Set Variable: "Criptos" = ""
Loop While (pointer <= size)
Set Variable: "ASCII" = Ord (Substring ( word, pointer,1))
Set Variable: "K" = Substring ( key, pointer,1)
Set Variable: "Criptos" = Criptos&Chr (ASCII+K)
Set Variable: "pointer" = pointer+1
End Loop
Where
word = the word you plan to encrypt
key = a numeric sequence with the same size of word ex: 7873484
criptos = word encrypted
[]s
Jo�o Carlos Rebello Carib�
Diretor T�cnico - MMUG Leader
Membro da Alian�a Latino Americana de MMUGs
@ Brasil Inform�tica Ltda - Flash Brasil
Centro de Treinamento e Revenda Especializada Macromedia
(21) 447 1884 / 0458
http://www.flash-brasil.com.br / http://www.drumbeat-brasil.com.br
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
www.flashforward2000.com
Produced by United Digital Artists and lynda.com
Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
shockwave.com and Electric Rain.
1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
Register before June 30 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
Re: FLASH: ENCRYPTION and Flash 4, Samir Thaker
Replies
FLASH: ENCRYPTION and Flash 4, Samir Thaker
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]