A
A
Alexander2021-11-30 21:30:41
PHP
Alexander, 2021-11-30 21:30:41

How to check PHP hash of crypt function in Python?

There is such a construct in PHP:
$hash = crypt( $password, $salt )
It creates a hash. But what is the method to check this hash in Python? Maybe there is a library?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vamp, 2021-11-30
@Captain

There is a built-in crypt library

from crypt import crypt

print(crypt("hello world", "ab"))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question