IceChat Forums

IceChat 9 => IceChat 9 Wishlist => Topic started by: Askerion on October 28, 2014, 12:03:58 AM

Title: IceChat FisH
Post by: Askerion on October 28, 2014, 12:03:58 AM
Hello, it is possible to write a plugin which gives the opportunity to IceChat per channel to deposit a Fish Key.

The Mirc plugin would be the (http://syndicode.org/fish_10/)

I would also donate some money

sorry for my bad English
Title: Re: IceChat FisH
Post by: Snerf on October 28, 2014, 12:26:40 PM
What is the purpose of the plugin?
Title: Re: IceChat FisH
Post by: Askerion on October 28, 2014, 11:42:13 PM
There are many channels that are encrypted with this system and you can just read along if you have this encryption
Title: Re: IceChat FisH
Post by: Snerf on October 30, 2014, 02:54:15 PM
Do you have an example of a channel this could be tested on?

Will have to see if there is a blowfish implementation for .net
Title: Re: IceChat FisH
Post by: Askerion on November 02, 2014, 12:19:22 AM
I am writing to you just once in IceChat irc with blowfish on. So far I have not found 100% library. While there are blowfish for .net But the irc module that looks somehow different.

Here is an example:
Here the Blowfish key:
wVXFWMjZqgOTq97f2MyRfanC9AvAQQDvuR3U7Vlh

Here the Irc Line:
+ OK ytnEp1aG05F1MGIPQ0WC5VL0noMV.1f6sQX.80c4Z.Zn6VW1lvRCT/z5Dq.1/Yb1t.aAFFi/3TsvO/ECglz1cKFH0/o3krX0x0VTp.2nNnj0c3Jvv.mOnWk/kJy1O/rZZ/Z/khmZE0dQLqI0ACDCK1AZkfi.O9NqC1Q/Iqs.


In Irc Blowfish modules each line starts with + OK


Title: Re: IceChat FisH
Post by: Snerf on November 03, 2014, 09:28:02 AM
Yes, it looks like there is no .net equilavent of this DLL for mirc.
One would need to be found, in order to make this work.
Perhaps the authors of the dll would know of one.
Title: Re: IceChat FisH
Post by: Askerion on November 12, 2014, 01:11:30 AM
Had the interest so someone to develop a plugin. Of course I'll pay for it also
Title: Re: IceChat FisH
Post by: Askerion on November 12, 2014, 01:48:33 AM
I found this source code.

http://www.file-upload.net/download-9831392/FiSH.v1.25-source.rar.html

Maybe you can use the
Title: Re: IceChat FisH
Post by: Snerf on November 12, 2014, 08:30:02 AM
No use what so ever, its not .Net code.
Title: Re: IceChat FisH
Post by: Askerion on November 18, 2014, 11:57:23 AM
hello
I started to write my own plugin Blowfish. The irc channel encryption and decryption works already.

Is it possible to expand the right-click popup menu in the irc channel?
Title: Re: IceChat FisH
Post by: Snerf on November 18, 2014, 03:47:49 PM
Yes, open the IceChat Editor, go to Popup Menu, and choose which menu you want to edit.
Title: Re: IceChat FisH
Post by: Askerion on November 19, 2014, 03:07:22 AM
hello,

sorry I ask so stupid. How can I then be deposited there, that my WinForms is then loaded
Title: Re: IceChat FisH
Post by: Snerf on November 19, 2014, 01:09:41 PM
Sorry, I dont understand the question.

If you want to know how to use/edit the popup menus, go to http://wiki.icechat.net/index.php?title=Popup_Menus

Also, if you would like to have your BlowFish plugin added to the website for plugin downloads, you could send us the source code, and we can add it to the plugins download section.

Thanks
Title: Re: IceChat FisH
Post by: Askerion on November 20, 2014, 05:04:14 AM
hello,

the plugin I will come to you as soon as everything works.

How can I create a new command in my plugin.
If I for example, the editor at Channel Commands a new menu created.

.Fish
Set new key / command name (for example, setkey)

How can I catch setkey then in my plugin?

I've tried

  public void Send Command (PluginArgs args)
         {
            if (args.Command == "setkey")
             {

             }
         }


        public override SendCommand (PluginArgs args)
         {
            
             if (args.Command == "setkey")
             {

             }
             return args;
         }
Title: Re: IceChat FisH
Post by: Snerf on November 20, 2014, 08:47:29 AM
        public override PluginArgs InputText(PluginArgs args)
        {
            if (args.Command.StartsWith("/setkey"))
            {
                //do stuff here -- args.Command is the entire command
            }
           
            return args;
        }


If you dont want IceChat itself to do anything, just set args.Command = "" before you return, and it will all be handled by the plugin.
Title: Re: IceChat FisH
Post by: Askerion on November 23, 2014, 11:43:43 PM
Good Morning,

I have done one channel message is decrypted as and also when I send a text he is sent encrypted.

Now I have the problem that is if I my input text Send Encrypts the ship, but also encrypted in my chat window. He should, however, be shown normally.

So the question is: How can I send my encrypted text, but themselves get it displayed normally.

Here is my code:

Code: [Select]
public override PluginArgs InputText(PluginArgs args)
        {
            if (args.Command.StartsWith("/setkey"))
            {

                BlowfishKeys frm = new BlowfishKeys(BlowfistuffemFile);               
                frm.Show();
            }



            foreach (Blowfistuffem item in IceChatBlowfistuffem.listBlowfishs)
            {
                if (item.Enable = true)
                {
                    BlowfishEnabled = true;
                    if (item.ChannelName == args.Channel)
                    {
                        String cryptedmessage = MessageEncrypt(args.Command, item.ChannelKey);
                        args.Command = args.Command.Replace(args.Command, cryptedmessage);
                        return args;
                    }
                }

            }





            return args;
        }


the source code is misrepresented.

Therefore, here's an external link

http://pastebin.com/wzqtsYLY
Title: Re: IceChat FisH
Post by: Snerf on November 24, 2014, 09:28:11 AM
I am not sure, you probably have to send the PRIVMSG command inside the plugin with the encrypted message, and then perhaps send back a /echo command or such, to echo to your window.

args.Channel gives you the channel name if you are in a channel
args.Nick gives you the Nickname if you are in a Query

args.Extra will equal "Channel" or "Query" if you are in a channel or a query.

To send a command in the plugin, create a new PluginArgs variable with a command value.
Code: [Select]
PluginArgs argsC = new PluginArgs();
argsC.Command = "/some command to send";
OnCommand(argsC);
See how that works for you. If not we may need to make a adjustment to IceChat to allow for this to work better.



Title: Re: IceChat FisH
Post by: Askerion on November 24, 2014, 11:36:12 AM
OK maybe I expressed myself wrong, or I do not understand it yet known,
Which Function is responsible for the outgoing text.

(Public override PluginArgs input text (PluginArgs args) ??? or is there another way
(If I for example, want to encrypt an outgoing message and args.message debug is empty and this is my written only in args.command)


My problem is that my message is indeed sent encrypted. and the other user can decrypt my message, but I personally do not see the plain text but also the encrypted message.,
Title: Re: IceChat FisH
Post by: Snerf on November 24, 2014, 11:44:46 AM
PluginArgs argsC = new PluginArgs();
argsC.Command = "/some command to send";
OnCommand(argsC);

That is how you send a command. If you want to send a raw message, like PRIVMSG

argsC.command = "/raw PRIVMSG #channel: encrypted message here";

Then change args.Command to /echo the normal message to your window.
Title: Re: IceChat FisH
Post by: Askerion on November 24, 2014, 12:10:36 PM
But there is no way to transmit the encrypted message to the IRC and display text in IceChat Channel window Plain?

I will tomorrow at work on trying to solve the problem. I'm not a developer and am still learning:-)
Title: Re: IceChat FisH
Post by: Snerf on November 24, 2014, 12:35:32 PM
Yes, there is, I explained how to do it.
You just have to change the way IceChat handles the message/command or it will duplicate it.
Title: Re: IceChat FisH
Post by: Askerion on November 24, 2014, 10:20:34 PM
Good Morning,

Unfortunately, I do not quite understand how to use it.

Currently I have to test that. But Ends in a Loop


Code: [Select]
public override PluginArgs InputText(PluginArgs args)
        {
            if (args.Command.StartsWith("/setkey"))
            {

                BlowfishKeys frm = new BlowfishKeys(BlowfistuffemFile);               
                frm.Show();
            }



           


            foreach (Blowfistuffem item in IceChatBlowfistuffem.listBlowfishs)
            {
                if (item.Enable = true)
                {
                    BlowfishEnabled = true;
                    if (item.ChannelName == args.Channel)
                    {
                        String cryptedmessage = MessageEncrypt(args.Command, item.ChannelKey);                     
                        args.Command = args.Command.Replace(args.Command, cryptedmessage);

                        test();
                        return args;

                    }
                }

            }
            return args;
        }

        public void test()
        {
            PluginArgs argsC = new PluginArgs();
            argsC.Command = "/echo halloa asasas";
            OnCommand(argsC);
        }
Title: Re: IceChat FisH
Post by: Askerion on November 25, 2014, 10:50:29 AM
Hello, I have got it so far but he still sends my / raw command and my input text. how can my input text Show only with me and not send to irc?
Title: Re: IceChat FisH
Post by: Snerf on November 25, 2014, 01:14:21 PM
Make args.Command blank when you return it.

Your code above will not work though.

Might be better to send along a link to your plugin, could have a look at it.
Title: Re: IceChat FisH
Post by: Askerion on November 26, 2014, 04:59:01 AM
enclose the entire project

http://www.file-upload.net/download-9907083/Plugin_FiSH.rar.html

Password: icechat
Title: Re: IceChat FisH
Post by: Snerf on November 26, 2014, 01:33:59 PM
Thank you, I will make some changes, and see if I can get it working.

Did it manage to properly 'decode' a message, have you tested that ?
Title: Re: IceChat FisH
Post by: Snerf on November 26, 2014, 03:20:22 PM
I have managed to make it work properly, as I can send messages from the mirc plugin back and forth.

So I will just make a few small adjustments, and upload the source code, and you can continue with the plugin.
Title: Re: IceChat FisH
Post by: Snerf on November 26, 2014, 03:44:04 PM
The updated source code is at:

http://icechat.net/beta/fish.zip

I did remake it on VS2008 as thats what I only have.
Title: Re: IceChat FisH
Post by: Askerion on November 29, 2014, 06:43:24 AM
Hi, thanks it works now.

I do now have the query message encryption.

Do you want to have the plugin later?
Title: Re: IceChat FisH
Post by: Snerf on November 29, 2014, 05:31:28 PM
Yes, if you could send me the last source code, and I can then compile, and add the plugin to the website, in case others would like it.

Thanks