Sujet : Re: Password Hash Validation (Posting On Python-List Prohibited)
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.pythonDate : 21. Jun 2024, 04:40:55
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v52so6$3019v$2@dont-email.me>
References : 1 2
User-Agent : Pan/0.158 (Avdiivka; )
On Thu, 20 Jun 2024 14:49:16 -0700, Paul Rubin wrote:
Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>
However, one language that does seem able to keep up to date is Perl.
So here’s my current password validation function:...
outhash = subprocess.check_output \
(
args = ("perl", "-e", "print crypt.... )
Ugh! Better to re-implement the function in Python.
I want a wrapper for crypt(3) and friends, so I automatically support any
password hashes that the system implements, now or in the future. I don’t
want to have to worry about specific hash algorithms in my code.
passlib meant well, but I think it was over-engineered for this purpose.
I think I will create my own wrapper using ctypes.