changing from Ipython.lib.passwd to hashlib.sha1

master
manetta 2 years ago
parent 9281eb8e63
commit 95c0710347

@ -2,7 +2,8 @@
import argparse
import os, sys
from IPython.lib import passwd
# from IPython.lib import passwd
from hashlib import sha1
from jinja2 import Environment, FileSystemLoader
from random import shuffle
from csv import writer
@ -38,7 +39,8 @@ for username in usernames:
userdata = {}
userdata['username'] = username
userdata['password'] = password
userdata['password_sha1'] = passwd(password)
# userdata['password_sha1'] = passwd(password)
userdata['password_sha1'] = sha1(password)
userdata['port'] = curport
userdata['servername'] = servername
users.append(userdata)

Loading…
Cancel
Save