Tasossssss
Tasossssss

Reputation: 11

Python + OTR using otrxmppchannel, unable to send message

Can anyone help me send a message with OTR encryption with Python?

I have tried the instructions from here without success.

My program until now is:

import os
import time
from otrxmppchannel import OTRXMPPChannel

privkey = open('mykey.otrprivkey', 'r').read()

channel = OTRXMPPChannel('[email protected]','password_of_sender','[email protected]',privkey)

channel.send('')  # Force OTR setup
time.sleep(3)  # Wait a bit for OTR setup to complete
channel.send('This message should be encrypted')

And the file mykey.otrprivkey is a file that includes the private key, which has the form:

AAAA.............X3cE=

As a key file I have tried files with the form:

(privkeys
 (account
(name "[email protected]")
(protocol prpl-jabber)
(private-key 
 (dsa 
  (p ....

but that doesn't work.

Upvotes: 1

Views: 255

Answers (0)

Related Questions