~mtrausch/pymcrypt/trunk

« back to all changes in this revision

Viewing changes to tests/testpymcrypt.py

  • Committer: Michael B. Trausch
  • Date: 2010-12-16 15:19:56 UTC
  • Revision ID: mike@trausch.us-20101216151956-poc3k8jkbe7ak15i
Ref Cython files as data. Do not require end-users to have Cython.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import pymcrypt
 
2
x = open('foo.output2', 'wb')
 
3
ex = pymcrypt.EncryptedWriter(x, 'dumbpassword')
 
4
 
 
5
ex.write('''Mary had a little lamb, her fleece was white as snow.
 
6
And everywhere that Mary went, her lamb was sure to go.'''.encode('utf8'))
 
7
ex.close()