Module Import alias AugAssignAdd AttributeStore NameLoad attr Str Import alias TryExcept body ImportFrom alias identifier handlers ExceptHandler type NameLoad body ImportFrom alias identifier TryExcept body Expr NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Import alias ImportFrom alias Print BinOpMod Str Call AttributeLoad Str attr GeneratorExp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr For NameStore ListLoad Num Num Num Num Num Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword Num keyword Num keyword Num keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Dict NameLoad NameLoad Str Str Index CompareEq NameLoad NameLoad Print BinOpMod Str TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr For NameStore TupleLoad Num Num Num body Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpMult Str NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr Str Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad AttributeLoad NameLoad attr attr NameLoad Print BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore BinOpMult Str Num With Call NameLoad Str Str Num Num Num NameStore body Expr Call AttributeLoad NameLoad attr NameLoad With Call NameLoad Str Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Dict NameLoad NameLoad Str Str Index CompareEq NameLoad NameLoad Print BinOpMod Str NameLoad For NameStore TupleLoad Str Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad Dict NameLoad NameLoad Str Str Index NameLoad Print BinOpMod Str TupleLoad NameLoad NameLoad For NameStore TupleLoad Num Num Num body Assign NameStore Call NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr If CompareEq NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num orelse If CompareEq NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num orelse If CompareEq NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Dict NameLoad NameLoad Str Str Index CompareEq NameLoad NameLoad Print BinOpMod Str TupleLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr
N/A N/A sys N/A N/A sys path .. N/A os N/A N/A cStringIO StringIO StringIO N/A N/A N/A ImportError N/A io BytesIO StringIO N/A N/A N/A file N/A N/A N/A NameError N/A N/A file open N/A pyscrypt pyscrypt ScryptFile N/A N/A Version: %s N/A N/A . join N/A N/A str p N/A p N/A pyscrypt VERSION N/A text_length N/A 3 16 127 128 129 1500 N/A N/A plaintext N/A N/A os urandom text_length N/A fp N/A StringIO N/A sf N/A ScryptFile fp fp password password N 1024 r 1 p 1 mode N/A ScryptFile MODE_WRITE N/A N/A N/A sf write plaintext N/A N/A N/A sf finalize N/A N/A N/A fp seek 0 N/A crypttext N/A N/A fp getvalue N/A N/A N/A fp close N/A fp N/A StringIO crypttext N/A sf N/A ScryptFile fp fp password password mode N/A ScryptFile MODE_READ N/A decrypted N/A N/A sf read N/A N/A N/A sf close N/A result N/A N/A True False pass fail N/A N/A decrypted plaintext N/A N/A Test Encrypt/Decrypt: text_length=%s result=%s valid=%s N/A text_length result N/A sf valid N/A length N/A 10 100 1000 N/A N/A path_scrypt N/A /tmp/test-%d.scrypt length N/A path_text N/A /tmp/test-%d.txt length N/A text N/A Hello world length N/A sf N/A ScryptFile N/A file path_scrypt N/A ScryptFile MODE_WRITE password 1024 1 1 N/A N/A N/A sf write text N/A N/A N/A sf close N/A N/A N/A N/A file path_text N/A ScryptFile MODE_WRITE write text N/A N/A Created %s and %s. Check with tarsnap. N/A path_scrypt path_text N/A text N/A Hello world 100 N/A N/A ScryptFile /tmp/test-with.scrypt password 1024 1 1 f N/A N/A N/A N/A f write text N/A N/A ScryptFile /tmp/test-with.scrypt password f N/A N/A new_text N/A N/A f read N/A result N/A N/A True False pass fail N/A N/A text new_text N/A N/A Test With filename: result=%s result N/A filename N/A test1 test2 N/A N/A path_scrypt N/A N/A N/A os path join tests/ N/A filename .scrypt N/A path_text N/A N/A N/A os path join tests/ N/A filename .txt N/A valid N/A N/A ScryptFile verify_file N/A file path_scrypt N/A ScryptFile MODE_READ password N/A result N/A N/A True False pass fail N/A valid N/A N/A Test Verify: filename=%s result=%s N/A path_scrypt result N/A test N/A 0 1 2 N/A N/A sf N/A ScryptFile N/A file path_scrypt N/A ScryptFile MODE_READ password N/A f N/A file path_text N/A ScryptFile MODE_READ N/A N/A test 0 N/A N/A content_scrypt N/A N/A sf read 5 N/A content_text N/A N/A f read 5 N/A N/A N/A test 1 N/A N/A content_scrypt N/A N/A sf read 1005 N/A content_text N/A N/A f read 1005 N/A N/A N/A test 2 N/A N/A content_scrypt N/A N/A sf read N/A content_text N/A N/A f read N/A result N/A N/A True False pass fail N/A N/A content_scrypt content_text N/A N/A Test Decrypt: dec(%r) == %r result=%s valid=%s N/A path_scrypt path_text result N/A sf valid