from crypt import crypt pw = '2600' htpasswd = 'Jywn1PBEdYjkg' authd = crypt(pw,htpasswd)==htpasswd assert authd authd = crypt('wrongpw',htpasswd)==htpasswd assert authd==False
No comments:
Post a Comment