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

All Samples(24)  |  Call(21)  |  Derive(0)  |  Import(3)

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
                raise ValueError
 
            return PrivateIdentity(DSA_key(decode_b64_int(id[0]),
                                           decode_b64_int(id[1]),
                                           decode_b64_int(id[2]),
                                           decode_b64_int(id[3]),

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
    receiver = None if mparts[RECEIVER_INDEX] == '' else decode_b64_bytes(mparts[RECEIVER_INDEX].encode())
    text = decode_b64_bytes(mparts[TEXT_INDEX].encode())
    timestamp = None if mparts[TIMESTAMP_INDEX] == '' else decode_b64_int(mparts[TIMESTAMP_INDEX].encode())
    textstr = text.decode() if receiver is None else text # Decode unless encrypted
    sender = None if mparts[SENDER_INDEX] == '' else decode_b64_bytes(mparts[SENDER_INDEX].encode())
        raise ProtocolParseError
 
    rsa_key = RSA_key(decode_b64_int(idparts[RSA_N_INDEX].encode()),
                     decode_b64_int(idparts[RSA_E_INDEX].encode()))
 
    dsa_key = DSA_key(decode_b64_int(idparts[DSA_Y_INDEX].encode()),

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):