python library for passwd suitable blowfish hash generation

Damon Getsman dgetsman at amirehab.net
Wed Jun 4 14:53:50 EDT 2008


I'm working on a utility that needs to be able to generate /etc/shadow
suitable hashes on an OpenSuSE 10.3 system.  All of the shadowed
hashes are blowfish, I believe, from seeing the 'magic' $2a$10$ at the
start of each of the entries.  Ideally I would like to find a library
that will take my string and spit out the hash in a compatible ascii
form so that I could just drop it in place or prepend the $2a$10$ and
drop it in, but I'm not afraid of taking the binary and trying to
convert it to compatible ascii.

Does anybody know of any python libraries like this?  I've seen a few
of the libraries so far and I'm not sure if I want to use them or not;
documentation was rather lacking.

I'd appreciate any input you all might be able to give on this.

Thanks for your time.

-Damon Getsman



More information about the Python-list mailing list