Skip to content

Commit

Permalink
minor doc editorial update
Browse files Browse the repository at this point in the history
  • Loading branch information
justb4 committed Jan 5, 2021
1 parent 484370a commit 506a4bd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/admin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,12 @@ within an interactive Python-shell as follows: ::
$ pip install passlib
# or in Debian/Ubuntu: apt-get install python-passlib

pythonfrom passlib.hash import pbkdf2_sha256
python
>>> from passlib.hash import pbkdf2_sha256
>>>
>>> hash = pbkdf2_sha256.hash("mynewpassword")
>>> print hash
$pbkdf2-sha256$29000$da51rlVKKWVsLSWEsBYCoA$2/shIdqAxGJkDq6TTeIOgQKbtYAOPSi5EA3TDij1L6Y
>>> print(hash)
'$pbkdf2-sha256$29000$da51rlVKKWVsLSWEsBYCoA$2/shIdqAxGJkDq6TTeIOgQKbtYAOPSi5EA3TDij1L6Y'
>>> pbkdf2_sha256.verify("mynewpassword", hash)
True

Expand Down

0 comments on commit 506a4bd

Please sign in to comment.