Read the error message, it's really clear:
The crypt module is not supported on Windows
It's Linux specific, very simple, and not compatible with modern systems such as SHA (or even the broken MD5!).
Think about exactly what you are trying to do, and then start working out what you need to do. Only if you have to be compatible with ancient systems do you need to use anything like crypt - and in which case, good luck finding something for Windows apps! I think you will probably need it ...