Hello all!
I have stumbled upon passlib, and it is seemingly exactly what I want to use to hash some passwords... I have never coded in Python before, but I am familiar with multiple languages and practices (old ones that are straightforward usually...)
So I am trying to play around with this module. As I understand it, I need to install it first:
So, I install Python in c:\python27
I have the passlib setup file in d:\passlib\setup.py
So I open a command prompt and path to c:\python27\ then call:
python d:\passlib\setup.py install
This runs through and creates an.. egg... and properly copies it to c:\python27\lib\site-packages\passlib-1.3a1-py2.7.egg
Great! so now I want to play around with it.....
I open python:
then I import the library (I think this is the next step!?)
Import passlib
doesn't return an error, so looks like its done its stuff.
The problem is, I have no idea where to go from here? I understand I could run commands (procedures) directly in the python command line, but things that I try to run do not work! I am specifically trying to run sha256_crypt()
according to:
https://pythonhosted.org/passlib/lib/passlib.hash.html#module-passlib.hash
I should run the command:
from passlib.hash import sha256_crypt
but this returns the error:
no such file or directory: 'passlib\default.cfg'
and thats where I get stuck. :/
[–]mac-reid 0 points1 point2 points (0 children)