2

Is there some common (recommended) module for generating hashes in Python?

In particular I need whirlpool but something like mhash extension in PHP or jacksum in java, where many hashing algorithms present, would be the ideal, so it could be used in future.

dmitry
  • 4,989
  • 5
  • 48
  • 72

2 Answers2

3

A quick Google search finds both a pure Python implementation as well as a binding written in C for the Whirlpool algorithm.

Ignacio Vazquez-Abrams
  • 776,304
  • 153
  • 1,341
  • 1,358
  • 1
    Yeah, thanks, I began searching for a *common* way to do it, being suggesting that it exists. Seems not. – dmitry Dec 25 '12 at 09:19
0

I use the librhash ( examples here ). There you has a lot of hash algorithms, included Whirlpool. And it available in the most popular distributions like ubuntu