Python 2y-blowfish hash keys for shadow

As I found out, 2a shadow hash keys are deprecated because 2a has implementation flaws. It was fixed in 2011, and now 2y hits are widely used on Linux systems.

I tried to find a Python library that computes 2y hash, but I failed. I searched for at least two hours and looked through all available libraries, but each individual library for Python only calculates 2a hashes. Most of them are a shell for the bcrypt link from BSD, but they only compute 2a -hashes.

+4
source share
1 answer

passlib.hash.bcrypt class from passlib password hash version supports 2y format. Please note that you must also install py-bcrypt as a dependency.

+3
source

Source: https://habr.com/ru/post/1444348/


All Articles