12
12
# This port adds no further stipulations. I forfeit any copyright interest.
16
16
def md5crypt(password, salt, magic='$1$'):
17
17
# /* The password first, since that is what is most unknown */ /* Then our magic string */ /* Then the raw salt */
19
19
m.update(password + magic + salt)
21
21
# /* Then just as many characters of the MD5(pw,salt,pw) */
23
23
for i in range(0, len(password)):