async def create(self):
pool = await asyncpg.create_pool(
user=config.PGUSER,
password=config.PGPASSWORD,
host=config.ip,
port=5432,
database=config.DATABASE,
max_size=95,
min_size=3,
# statement_cache_size=1000,
# max_cacheable_statement_size=35360
)
self.pool = pool
Index Only Scan using blacklist_index on blacklist_persons (cost=0.42..2.65 rows=1 width=9) (actual time=0.084..0.085 rows=0 loops=1)
Index Cond: ((blacklisted_id = '1'::text) AND (user_id = '1'::bigint) AND (place = '1'::text))
Heap Fetches: 0
Planning Time: 1.311 ms
Execution Time: 0.154 ms
(5 rows)
from pyDes import *
data = base64.b64decode("9MaGC081K1jLXeMyHUCwWg==")
k = des("F9nA5uH8CeWreBraCRukaChe", CBC, "pUJeQ3Tr", pad=None, padmode=PAD_PKCS5)
print(k.decrypt(data))
key=F9nA5uH8CeWreBraCRukaChe
ivParameterSpec=pUJeQ3Tr
ValueError: Invalid DES key size. Key must be exactly 8 bytes long.