From 2685aa049d336f2332aa63fda4d706e53adb7c9c Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Wed, 24 Feb 2021 14:36:39 -0500 Subject: [PATCH] Update __init__.py --- src/gam/__init__.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/gam/__init__.py b/src/gam/__init__.py index 688b6576..873f7a49 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -79,11 +79,7 @@ from gam import transport from gam import utils from gam.var import * -if platform.system() == 'Windows': - # No crypt module on Win, use passlib - from passlib.hash import sha512_crypt -else: - from crypt import crypt +from passlib.hash import sha512_crypt if platform.system() == 'Linux': import distro @@ -1423,9 +1419,7 @@ def addDelegates(users, i): def gen_sha512_hash(password): - if platform.system() == 'Windows': - return sha512_crypt.hash(password, rounds=5000) - return crypt(password) + return sha512_crypt.hash(password, rounds=5000) def printShowDelegates(users, csvFormat):