|
@ -6,6 +6,7 @@ import re |
|
|
import hashlib |
|
|
import hashlib |
|
|
import base64 |
|
|
import base64 |
|
|
import io |
|
|
import io |
|
|
|
|
|
import configparser |
|
|
from datetime import datetime, timedelta |
|
|
from datetime import datetime, timedelta |
|
|
import datetime as fulldatetime |
|
|
import datetime as fulldatetime |
|
|
from bs4 import BeautifulSoup |
|
|
from bs4 import BeautifulSoup |
|
@ -17,7 +18,8 @@ from PIL import Image |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def generate_aes_key(): |
|
|
def generate_aes_key(): |
|
|
from MarketPlaces.Initialization.markets_mining import config |
|
|
|
|
|
|
|
|
config = configparser.ConfigParser() |
|
|
|
|
|
config.read('../../setup.ini') |
|
|
|
|
|
|
|
|
secret = config.get('Encryption', 'secret') |
|
|
secret = config.get('Encryption', 'secret') |
|
|
secret_bytes = bytes(secret, encoding="utf-8") |
|
|
secret_bytes = bytes(secret, encoding="utf-8") |
|
|