def new(self, symbol):
    ver = super.ver
    super.ver += 1
    m = hashlib.sha256()
    m.update(bytes(symbol, 'utf-8'))
    sha256_id = m.hexdigest()
    numbers = []
    with Popen('./openssl genrsa 2048 {0}'.format(sha256_id).split(' '), stdout=PIPE) as p:
        output = str(p.stdout.read(), 'utf-8')
        for row in output.split('INTEGER'):
            numbers.extend(list(filter((lambda x: x.startswith('           :')), row.splitlines())))
    pqKey = ''.join(reversed(numbers[1])).lower().replace(':', '')
    dKey = ''.join(reversed(numbers[3])).lower().replace(':', '')
    jgKey = ''.join(reversed(numbers[(- 1)])).lower().replace(':', '')
    pq0 = pqKey.strip()
    d0 = dKey.strip()
    f0 = jgKey.strip()
    with Popen('./openssl genrsa 2048 {0}'.format(sha256_id).split(' '), stdout=PIPE) as p:
        output = str(p.stdout.read(), 'utf-8')
        for row in output.split('INTEGER'):
            numbers.extend(list(filter((lambda x: x.startswith('           :')), row.splitlines())))
    pqKey = ''.join(reversed(numbers[1])).lower().replace(':', '')
    dKey = ''.join(reversed(numbers[3])).lower().replace(':', '')
    jgKey = ''.join(reversed(numbers[(- 1)])).lower().replace(':', '')
    pq1 = pqKey.strip()
    d1 = dKey.strip()
    f1 = jgKey.strip()
    super.session.execute(self.newPlayer, [sha256_id, symbol, ver, pq0, d0, f0, pq1, d1, f1])
def new(self, symbol):
    ver = super.ver
    super.ver += 1
    m = hashlib.sha256()
    m.update(bytes(symbol, 'utf-8'))
    sha256_id = m.hexdigest()
    numbers = []
    with Popen('./openssl genrsa 2048 {0}'.format(sha256_id).split(' '), stdout=PIPE) as p:
        output = str(p.stdout.read(), 'utf-8')
        for row in output.split('INTEGER'):
            numbers.extend(list(filter((lambda x: x.startswith('           :')), row.splitlines())))
    pqKey = .join(reversed(numbers[1])).lower().replace(':', )
    dKey = .join(reversed(numbers[3])).lower().replace(':', )
    jgKey = .join(reversed(numbers[(- 1)])).lower().replace(':', )
    pq0 = pqKey.strip()
    d0 = dKey.strip()
    f0 = jgKey.strip()
    with Popen('./openssl genrsa 2048 {0}'.format(sha256_id).split(' '), stdout=PIPE) as p:
        output = str(p.stdout.read(), 'utf-8')
        for row in output.split('INTEGER'):
            numbers.extend(list(filter((lambda x: x.startswith('           :')), row.splitlines())))
    pqKey = .join(reversed(numbers[1])).lower().replace(':', )
    dKey = .join(reversed(numbers[3])).lower().replace(':', )
    jgKey = .join(reversed(numbers[(- 1)])).lower().replace(':', )
    pq1 = pqKey.strip()
    d1 = dKey.strip()
    f1 = jgKey.strip()
    super.session.execute(self.newPlayer, [sha256_id, symbol, ver, pq0, d0, f0, pq1, d1, f1])