home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2004 #2 / K-CD-2-2004.ISO / OpenOffice Sv / f_0397 / python-core-2.2.2 / lib / test / test_crypt.py < prev    next >
Encoding:
Python Source  |  2003-07-18  |  222 b   |  12 lines

  1. #! /usr/bin/env python
  2. """Simple test script for cryptmodule.c
  3.    Roger E. Masse
  4. """
  5.  
  6. from test_support import verify, verbose
  7. import crypt
  8.  
  9. c = crypt.crypt('mypassword', 'ab')
  10. if verbose:
  11.     print 'Test encryption: ', c
  12.