python - Using the crypt module in Windows? -


in idle , python version 3.3.2, try , call python module so:

hash2 = crypt(word, salt) 

i import @ top of program so:

from crypt import * 

the result following:

traceback (most recent call last):   file "c:\none\of\your\business\adams.py", line 10, in <module>     crypt import *   file "c:\python33\lib\crypt.py", line 3, in <module>     import _crypt importerror: no module named '_crypt' 

however, when execute same file adams.py in ubuntu, python 2.7.3, executes - no errors.

i tried following resolve issue windows & python 3.3.2 (though i'm sure os isn't issue, python version or use of syntax issue):

  1. rename directory in python33 directory lib lib
  2. rename crypt.py in lib _crypt.py. however, turns out entire crypt.py module depends on external module called _crypt.py too.
  3. browsed internet download remotely appropriate resemble _crypt.py

it's not python, right? it's me...(?) i'm using syntaxes import , use external modules acceptable in 2.7.3, not in 3.3.2. or have found bug in 3.3.2?

i assume because crypt unix specific service.

right @ top of docs crypt:

34.5. crypt — function check unix passwords

platforms: unix


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -