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

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

src/b/l/BlueCop-XBMC-Plugins-HEAD/script.module.cryptopy/lib/crypto/cipher/wep.py   BlueCop-XBMC-Plugins(Download)
    September 2002
from crypto.cipher.arc4 import ARC4
from crypto.errors import IntegrityCheckError, BadKeySizeError
from zlib   import crc32
    def __init__(self, key=None, keyId=None):
        """ key -> octet string for key """
        self.name        = 'WEP'
        self.strength    = None # depends on keySize
        self.arc4 = ARC4()       # base algorithm

src/b/l/BlueCop-XBMC-Plugins-HEAD/script.module.cryptopy/lib/crypto/cipher/tkip_encr.py   BlueCop-XBMC-Plugins(Download)
    November 2002
from crypto.cipher.arc4 import ARC4
from zlib   import crc32
from struct import pack
        self.strength    = 128
        self.encryptHeaderSize = 8        # used to skip octets on decrypt
        self.arc4 = ARC4()                # base algorithm
        self.keyMixer = TKIP_Mixer(key,transmitterAddress)
        if key != None:                   # normally in base init, uses adjusted keySize

src/b/l/BlueCop-XBMC-Plugins-HEAD/script.module.cryptopy/lib/crypto/cipher/arc4_test.py   BlueCop-XBMC-Plugins(Download)
import unittest
from crypto.cipher.arc4 import ARC4
from binascii_plus import b2a_p
            kct = ''.join([chr(i) for i in cipherText])
            alg = ARC4(key)
            print 'key:    %s'%b2a_p(key)[9:]