User Tag List

Results 1 to 7 of 7

Thread: Encrypting messages in Moo

  1. #1
    No Products Registered

    Join Date
    Sep 2006
    Location
    Malmesbury, UK
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Encrypting messages in Moo

    Well, a good thing to have in a chat is encryption between clients just incase someone connects to the same channel. So basically you send an encrpyted version of waht you would send. When you receive a message you display a decrypted version of what's been sent. I never tried it before and my Moo knowledge is quite poor so before I start doing anything I would like to find out something about it. Can someone give me a some tips, what's better, what not. What extension should I use, what's the simplest way to use the extension and maybe a brief walkthrough.

    Plooscva

  2. #2
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Nov 2006
    Posts
    696
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Encrypting messages in Moo

    I would use string parser 2. I will throw together an example.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    James's Avatar
    Join Date
    Jun 2006
    Location
    Newcastle, UK
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Encrypting messages in Moo

    Blowfish is best for encryption. I could make you an example, but I am too tired. Maybe someone else will, or if you remind me tomorrow I can make you one.

  4. #4
    No Products Registered

    Join Date
    Oct 2006
    Posts
    183
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Encrypting messages in Moo

    Be careful however, you would need both ends to use the same encryption key but you don't really want to send that over the connection as that could be read couldn't it You could encrypt your encryption key using a built in encryption key which is unknown to users and only to your application in the background. This way no one can simply sniff out your key.

    Another way could be to have some integrated keys. When you establish a chat with someone, send a number between 1-20 for example. If it was 3 then both ends would encrypt and decrypt using the key specified to that number. Another conversation could be using 5 and so on

  5. #5
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Nov 2006
    Posts
    696
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Encrypting messages in Moo

    Ugh, this example keeps on getting messed up. Maybe I will finish it by tommorow. Look at this list on how to alter charachters. (Joshtek, to make it more related to the topic, I have changed your wording a bit)

    Quote Originally Posted by Joshtek
    How to automatically censor every word in a list, by Joshtek

    1. Create a new list called List wordlist and uncheck the option "1-based".
    2. Every line of List wordlist's list should have the charachter to find followed by an equals character followed by the charachter to replace it with. Example list:

    Code:
    a=b
    8=4
    !=*
    ▒=║

    3. Create two new string parsers, one called String Parser word and the other String Parser message.
    4. New action for start of frame: String Parser word->List Tokenizing->Delimiters->Add Delimiter with the parameter "="
    5. Create a new action: Special->On loop. Call the loop "censor word".
    6. Action: Set the source string of String Parser word to List Line Text$( "List wordlist", LoopIndex("censor word"))
    7. Set the source string of String Parser message to replace$( "String Parser message", listFirst$( "String Parser word" ), listLast$( "String Parser word" ))
    8. Whenever you want to use this feature then just set String Parser message to the input (e.g. the contents of an edit box), use the special->run loop action to run the loop "censor word" List Nb Lines( "List wordlist" ) times. Finally, use String Parser message as the output (e.g. what to send/display).
    9. Final Note: You may want to filter the input too - just in case other people are using a different chat client.

    Try it out, and "I like light blue water" should become "I like dark red wine".
    That should make altering charachters a little easier.

    To decrypt the encrypted message use the following code:

    Code:
    *On message
    -Set string parser message to Player_message gettext$(mooclick)
    -Start loop "decrypt list number of times
    -Set [obj_richedit] to [obj_parser] string
    *On loop "decrypt"
    -Set [obj_parser] word to list line "loop decrypt index"
    -Set [obj_parser] message to replace$(message)(Last element), first element) [instead of first then last]

  6. #6
    No Products Registered

    Join Date
    Sep 2006
    Location
    Malmesbury, UK
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Encrypting messages in Moo

    Well, I'm going to use Blowfish and I get how it works and everything. It's easier then I thought and I don't have to alter the code much! Cheers for now.

    Ploo

  7. #7
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    James's Avatar
    Join Date
    Jun 2006
    Location
    Newcastle, UK
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Encrypting messages in Moo

    Hehe a cipher isn't really practical for the internet!

Similar Threads

  1. Encrypting game data
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 22nd December 2012, 02:41 PM
  2. Encrypting a List
    By Rockdude in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 8th September 2011, 06:41 AM
  3. encrypting ini
    By Cossin in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 13th September 2008, 04:18 PM
  4. Encrypting Files
    By im2famous4u in forum Multimedia Fusion 2 - Technical Support
    Replies: 30
    Last Post: 21st May 2008, 08:38 PM
  5. Encrypting qeustion
    By Blizna in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 10th August 2006, 07:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •