cpython/Lib/test/test_crypt.py

13 lines
239 B
Python
Raw Normal View History

1996-12-10 07:13:45 +08:00
#! /usr/bin/env python
"""Simple test script for cryptmodule.c
Roger E. Masse
"""
verbose = 0
if __name__ == '__main__':
verbose = 1
1996-12-10 07:13:45 +08:00
import crypt
c = crypt.crypt('mypassword', 'ab')
if verbose:
print 'Test encryption: ', c