mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			239 B
		
	
	
	
		
			Python
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			239 B
		
	
	
	
		
			Python
		
	
	
		
			Executable file
		
	
	
	
	
| #! /usr/bin/env python
 | |
| """Simple test script for cryptmodule.c
 | |
|    Roger E. Masse
 | |
| """
 | |
| verbose = 0
 | |
| if __name__ == '__main__':
 | |
|     verbose = 1
 | |
|     
 | |
| import crypt
 | |
| c = crypt.crypt('mypassword', 'ab')
 | |
| if verbose:
 | |
|     print 'Test encryption: ', c
 | 
