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

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

        def read_key(key_path):
    with open(key_path, 'r') as f:
        data = f.read()
    return AesKey.Read(data)
        


src/s/e/sesame-0.3.2/sesame/cli.py   sesame(Download)
from sesame.utils import confirm
from sesame.utils import find_sesame_keys
from sesame.utils import read_key
 
MODE_ENCRYPT = 1
        else:
            # load the single key supplied
            key = read_key(os.path.join(args.keyfile))
            if key is not None:
                keys = [key]