Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Text X-Changer Version 1.3
Export/Import Text and Filed Members for proofing
Shadow Maker
Director 8 Demystified
Tony's Quick Script Maker
XML to OBJ with lingo
Irregular Slider
RC4 Encryption Algorithm Script
Director Publications
Screen Savers
 

 

 

Behavior Simple Encryption / Decryption

Added on 7/2/1999

 

Compatibilities:
D6_5 D7 D8 Mac PC Script

Rating:

Author: Penworks (website)

Reproduced with permission from Penworks Lingo User"s Journal

-- Source Code from the Lingo User"s Journal
-- Copyright (c) 1995 by Penworks Corporation

on encryptString whichString, value
   set newString =""
   set len=length(whichString)  
   repeat with x=1 to len
      set thisChar =char x of whichString
      set thisChar =numToChar( charToNum(thisChar) + value )
      set newString =newString & thisChar
   end repeat
   return(newString)
end encryptString

on decryptString whichString, value
   set newString =""
   set len=length(whichString)  
   repeat with x=1 to len
      set thisChar =char x of whichString
      set thisChar =numToChar( charToNum(thisChar) - value )
      set newString =newString & thisChar
   end repeat
   return(newString)
end decryptString

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail