File: checkpass.py

package info (click to toggle)
python-crack 0.5.1-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 724 kB
  • ctags: 289
  • sloc: perl: 1,933; sh: 601; python: 135; makefile: 113
file content (14 lines) | stat: -rwxr-xr-x 292 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /usr/bin/python

import getpass, crack

print("Example program using cracklib")

password = getpass.getpass("Enter potential password: ")

try:
	crack.FascistCheck(password)
except ValueError, reason:
	print("Please use a different password, %s." % reason)
else:	
	print("Good password.")