Skip to content

Commit 37a1b32

Browse files
committed
Update readme
1 parent 47efb07 commit 37a1b32

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,28 @@
1-
# python-whirlpool
1+
python-whirlpool
2+
================
23

34
This is just a wrapper to the Whirlpool C reference implementation.
45
The Whirlpool reference implementations are public domain, as is this code.
56

67
Wrapper written by James Cleveland with help from #python on irc.freenode.net.
78

8-
USAGE:
9+
Wrapper modified by Olaf Conradi to use the hashlib interface.
10+
11+
Usage
12+
-----
913

1014
import whirlpool
1115

12-
hashed_string = whirlpool.hash("Mystring")
16+
wp = whirlpool.new("My String")
17+
hashed_string = wp.hexdigest()
18+
19+
wp.update("My Salt")
20+
hashed_string = wp.hexdigest()
21+
22+
Deprecated usage
23+
----------------
24+
25+
import whirlpool
1326

27+
hashed_string = whirlpool.hash("My String")
1428

0 commit comments

Comments
 (0)