Sujet : Re: Password Hash Validation (Posting On Python-List Prohibited)
De : no.email (at) *nospam* nospam.invalid (Paul Rubin)
Groupes : comp.lang.pythonDate : 20. Jun 2024, 23:49:16
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <8734p7709v.fsf@nightsong.com>
References : 1
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
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'll take a look:
https://www.openwall.com/yescrypt/In fact that site links to Python bindings for Yescrypt:
https://github.com/0xcb/pyescryptI guess C bindings rather than a pure Python implementation are
necessary, since part of the idea of the function is to impede brute
force attacks by burning a lot of CPU and memory on each hash.