X-Git-Url: https://git.phdru.name/?p=m_lib.git;a=blobdiff_plain;f=m_lib%2Fmcrypt.py;h=03aa7f6f8d0937d4407de5ed3828031690b914f4;hp=76922a0efe71b521642e84d18055cce890cd7055;hb=fea5b1d068bc94adce899a804a643bf24b8a9777;hpb=1dad4b54683b2b497eacb907f7a328ce5cb4d858 diff --git a/m_lib/mcrypt.py b/m_lib/mcrypt.py index 76922a0..03aa7f6 100755 --- a/m_lib/mcrypt.py +++ b/m_lib/mcrypt.py @@ -35,9 +35,8 @@ def test(): pwd_file.close() print("Password file written") - import string pwd_file = open("test.pwd", 'r') - username, encrypted = string.split(pwd_file.readline()[:-1], ':') + username, encrypted = pwd_file.readline()[:-1].split(':') pwd_file.close() if crypt.crypt(encrypted, encrypted):