ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Mircryption

Auto Key-Exchange in Query?

(1/1)

thede:
Hi guys,
I have a little Question/Request.

Is it possible to somehow have an Auto Key-Exchange for Queries if theres no key for the Chat Partner yet?
(or something like that in FiSH)

If not... is it possible to add that to the next version please?  :)

mouser:
i'm trying to remember if anyone made a little script for this.. it would be a good assignment for anyone learning basic mirc scripting, not very hard.

thede:
yeah, you are right mouser, its a very simple script ;)
i though i would need to use more complex stuff but hey, this is all:

--- ---on *:SIGNAL:MircryptionSignalAll: {
  if ($1 = query) {
    ;; if ($2 = -sBNC) { halt } <-if youre using sbnc
    if ($4 = $false) {
      /mckeyx $3
    }
    if ($4 = $true) {
    }
  }
}

thx for your help

mouser:
nice first try!
a problem is that if you speak to someone without mircryption or fish it's going to try to do a key exchange with them every time they say anything.

a nice solution would be to set a persistent variable (or hash entry) like %autokeyx_USERNAME (where USERNAME is the name of the person, i.e. $3) whenever you do the mckeyx in your routine, and only try they mckeyx if the variable for the user is not set yet.  that way, it will only ever try it once per user.

Navigation

[0] Message Index

Go to full version