- /KEY MSG nickname set secretkey
- /KEY MSG nick set secretkey -responder
- /KEY MSG foo agreement 10.2.1.7 5000
- /KEY MSG bar negotiate 10.2.1.7 5000
+
+ Set private message key with a friend:
+
+ foobar: /KEY MSG friend set secretkey
+ friend: /KEY MSG foobar set secretkey
+
+ Perform key agreement:
+
+ bar: /KEY MSG foo agreement 10.2.1.7 5000
+ foo: /KEY MSG bar negotiate 10.2.1.7 5000
+
+ bar: /KEY MSG foo agreement 10.2.1.7 5000 UDP
+ foo: /KEY MSG bar negotiate 10.2.1.7 5000 UDP
+
+See also: WHOIS, CHANNEL, GETKEY