I'm doing a program in Python and I need to encrypt a password for a form. My problem is that the most popular cryptographic default method in Python is Crypt, but this is for UNIX. How could I encrypt and decode words in Windows?
I'm doing a program in Python and I need to encrypt a password for a form. My problem is that the most popular cryptographic default method in Python is Crypt, but this is for UNIX. How could I encrypt and decode words in Windows?
I think what you're looking for is passlib, here you'll find the documentation link, to download it use pip install passlib
in Windows PowerShell. In this league you will find a brief tutorial on how to make use of the bookstore.
Another very easy and efficient way is to make use of the libraries hashlib and random .