Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(12)  |  Call(8)  |  Derive(0)  |  Import(4)

src/d/a/Dandelion-Message-Service-HEAD/dandelionpy/dandelion/database.py   Dandelion-Message-Service(Download)
from dandelion.identity import Identity, PrivateIdentity, DSA_key, RSA_key, IdentityInfo
from dandelion.message import Message
from dandelion.util import encode_b64_bytes, decode_b64_bytes, encode_b64_int, \
    decode_b64_int
import random
            c = conn.cursor()
            c.execute("INSERT INTO private_identities (fingerprint, dsa_x, rsa_d) VALUES (?,?,?)",
                      (self._encode_id(identity.fingerprint), encode_b64_int(identity.dsa_key.x), encode_b64_int(identity.rsa_key.d)))
 
    def remove_private_identity(self, identity, keep_public_identity=False):
        cookie = self._add_content(self._QUERY_GET_IDENTITY_COUNT, self._QUERY_ADD_IDENTITIES,
                          [(self._encode_id(id.fingerprint),
                            encode_b64_int(id.dsa_key.y),
                            encode_b64_int(id.dsa_key.g),
                            encode_b64_int(id.dsa_key.p),

src/d/a/Dandelion-Message-Service-HEAD/dandelionpy/dandelion/protocol.py   Dandelion-Message-Service(Download)
from dandelion.identity import Identity, RSA_key, DSA_key
from dandelion.message import Message
from dandelion.util import encode_b64_bytes, decode_b64_bytes, encode_b64_int, \
    decode_b64_int
import re

src/d/a/Dandelion-Message-Service-HEAD/dandelionpy/dandelion/test/util_test.py   Dandelion-Message-Service(Download)
 
import unittest
from dandelion.util import encode_b64_bytes, encode_b64_int, decode_b64_bytes, decode_b64_int
 
class UtilTest(unittest.TestCase):

src/d/a/Dandelion-Message-Service-HEAD/dandelionpy/dandelion/test/protocol_test.py   Dandelion-Message-Service(Download)
import dandelion.protocol
from dandelion.protocol import ProtocolParseError, ProtocolVersionError
from dandelion.util import encode_b64_bytes, encode_b64_int, decode_b64_bytes
import re
import unittest