Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Tint bitmap behaviour
Math
Wise Install Maker
QTRecordAudioXtra
Scroll Thumb Track
Jaw Wars
Change Cursor
Change ShapeType of a Shape Sprite
MUI-GUI
Play and cleanup DV Sprites
MediaMacros Xtras Mall
 

 

 

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

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail