is it possible to encrypt EVERYTHING what an eggdrop say's in a special chan? For mIRC I've an addon - BlowCrypt - there I can set a special key for every chan and it get's encrypter and auto decrypted. I need this in TCL for eggdrop - where I can an special key for the chan too.
Eggdrop has no clue about what channel you're sending messages to, so you'd have to rewrite the internal output commands to parse everything sent to the server.
This sounds like a bad idea to me. I get the feeling you're after encrypting messages sent by a script, and that would be much easier. Just change every line that makes some output to your channel to call your encryption/output proc. I bet your decryption is based on some keyword at the start of every message to determine that it's an encrypted string, so that would make it easy for the eggdrop to pick up these lines and decrypt them for you.
Now there's only one problem left; the actual encrypt/decrypt function. If it's compatible with eggdrop's own blowfish encryption (even using the same salts), no problem. If not: start reading the source of that addon (it's open source, right?)
But the problem is it doesnt decrypt my input. So when i try to do !hello it wont respond cause I am sending with blowcrypt. How can I make the bot that it will decrypt my message and will execute the proc for !hello ?
use a 'pubm' bind (with the channel name included in the mask to avoid having to decrypt EVERY public message recieved by the bot) and call the other procs after decrypting the message and extracting the command part.
When someone sends the public command with blowfish encyption THEN the bot WONT reply, cause it couldnt decrypt the input (so it couldnt read it correctly). I will try that way which "user" told me this evening. I think that will do it .
proc decryptall { nick uhost handle chan arg } {
global key
set arg [decrypt $key "$arg"]
putserv "PRIVMSG $chan :arg = $arg"
return 0
}
It won't decrypt the input correctly.
If I sent a TEXT WITH BLOWFISH (same key!) the bot will not decrypt the text correctly. Why? I am using same keys!
The interesting thing is that I CAN read the encrypted messages of the bot with my blowfish script for mIRC. So I thought eggdrop/mircblowfish got the same salts. But it doesn't look like that now in the decrypt function. Maybe I am doing something wrong ? Can anyone help me? PLEASE !