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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/n/i/Nitrogen-0.2a.dev/nitrogen/webio/cookies.py   Nitrogen(Download)
def make_encrypted_container(entropy):
    import crypto
    aes = crypto.AES(crypto.sha256(entropy).digest(), salt=True, base64=True)
 
    class EncryptedContainer(Container):

src/t/r/TripleSec-0.3/triplesec/versions.py   TripleSec(Download)
    Constants
)
from .crypto import (
    Scrypt,
    PBKDF2,
                       key_size = Twofish.key_size),
                Cipher(name = 'AES-256-CTR',
                       implementation = AES,
                       overhead_size = AES.block_size,
                       key_size = AES.key_size) ])
                       key_size = Twofish.key_size),
                Cipher(name = 'AES-256-CTR',
                       implementation = AES,
                       overhead_size = AES.block_size,
                       key_size = AES.key_size) ])