Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

des encription with passlib #99

Closed
nakagami opened this issue May 27, 2023 · 0 comments
Closed

des encription with passlib #99

nakagami opened this issue May 27, 2023 · 0 comments

Comments

@nakagami
Copy link
Owner

crypt module will be removed.
https://peps.python.org/pep-0594/

crypt module is used for Legacy_Auth (for Firebird 3 and 4), so use passlib to fallback.

passlib
https://pypi.org/project/passlib/

>>> import crypt
>>> crypt.crypt("secret", '9z')
'9zMktUfATCrdY'
>>> import passlib.hash
>>> passlib.hash.des_crypt.hash("secret", salt='9z')
'9zMktUfATCrdY'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant