fixes after module moves

This commit is contained in:
Kevin Froman 2019-02-17 14:21:03 -06:00
parent 6d7ccb77b7
commit 4843fb1e9c
6 changed files with 14 additions and 12 deletions

View file

@ -1 +1 @@
n6bvl3azuqkzckfc6ny2ruxxn2yh56tfpnbgzb3cz6zvwj64blfxj6id.onion
yjlbrt6ins7rhacaapk4a4rfwf3dqh55merbaobxd7qumuok6j6vd7yd.onion

View file

@ -88,7 +88,7 @@ class PlainEncryption:
return
encrypted = data.replace('ONIONR ENCRYPTED DATA ', '').replace('END ENCRYPTED DATA', '')
myPub = self.api.get_core()._crypto.pubKey
decrypted = self.api.get_core()._crypto.pubKeyDecrypt(encrypted, privkey=self.api.get_core()._crypto.privKey, anonymous=True, encodedData=True)
decrypted = self.api.get_core()._crypto.pubKeyDecrypt(encrypted, privkey=self.api.get_core()._crypto.privKey, encodedData=True)
if decrypted == False:
logger.error("Decryption failed")
else:

View file

@ -21,7 +21,8 @@
# Imports some useful libraries
import logger, config, threading, time, readline, datetime
from onionrblockapi import Block
import onionrexceptions, onionrusers
import onionrexceptions
from onionrusers import onionrusers
import locale, sys, os, json
locale.setlocale(locale.LC_ALL, '')